| 1 | #cxx . . $ `<file>/src/helicopter.h`/ifndef HELICOPTER_HEADER_FILE__ |
| 2 | #define HELICOPTER_HEADER_FILE__cxx . . $ `src/helicopter.h:2:9`! |
| 3 | |
| 4 | #include "coord.h"cxx . . $ `<file>/src/coord.h`/ |
| 5 | #include "submarine.h"cxx . . $ `<file>/src/submarine.h`/ |
| 6 | |
| 7 | #ifndef FALSEcxx . . $ `src/map.h:13:9`! |
| 8 | #define FALSE 0 |
| 9 | #endif |
| 10 | #ifndef TRUEcxx . . $ `src/map.h:10:9`! |
| 11 | #define TRUE 1 |
| 12 | #endif |
| 13 | |
| 14 | |
| 15 | #define ACTION_HOVERcxx . . $ `src/helicopter.h:15:9`! 0 // not sure, waiting in one spot |
| 16 | #define ACTION_MOVINGcxx . . $ `src/helicopter.h:16:9`! 1 // moving to destination |
| 17 | #define ACTION_LISTENcxx . . $ `src/helicopter.h:17:9`! 2 // lower sonar |
| 18 | #define ACTION_RETURN_TO_BASEcxx . . $ `src/helicopter.h:18:9`! 3 // to be implemented later |
| 19 | #define ACTION_REFUELINGcxx . . $ `src/helicopter.h:19:9`! 4 // to be implemented later |
| 20 | |
| 21 | #define LISTEN_HEIGHTcxx . . $ `src/helicopter.h:21:9`! -20 |
| 22 | #define MOVE_HEIGHTcxx . . $ `src/helicopter.h:22:9`! -50 |
| 23 | #define HELICOPTER_RUBBERcxx . . $ `src/helicopter.h:23:9`! 50 |
| 24 | #define FIRING_WAITcxx . . $ `src/helicopter.h:24:9`! 120 // two mintes |
| 25 | |
| 26 | #define DO_NOTHINGcxx . . $ `src/helicopter.h:26:9`! 0 |
| 27 | #define DO_SHOOTcxx . . $ `src/helicopter.h:27:9`! 1 |
| 28 | #define DO_MOVEcxx . . $ `src/helicopter.h:28:9`! 2 |
| 29 | |
| 30 | |
| 31 | class Helicoptercxx . . $ Helicopter# : public Coordcxx . . $ Coord# |
| 32 | { |
| 33 | public: |
| 34 | int MaxSpeedcxx . . $ Helicopter#MaxSpeed., DesiredSpeedcxx . . $ Helicopter#DesiredSpeed.; |
| 35 | int Depthcxx . . $ Helicopter#Depth., DesiredDepthcxx . . $ Helicopter#DesiredDepth.; |
| 36 | int DesiredHeadingcxx . . $ Helicopter#DesiredHeading.; |
| 37 | int TorpedoesOnBoardcxx . . $ Helicopter#TorpedoesOnBoard.; |
| 38 | int current_actioncxx . . $ Helicopter#current_action.; // hovering, listening, moving, returning to base |
| 39 | int moodcxx . . $ Helicopter#mood.; // convoy, passive, attack |
| 40 | int Friendcxx . . $ Helicopter#Friend.; |
| 41 | int destination_xcxx . . $ Helicopter#destination_x., destination_ycxx . . $ Helicopter#destination_y.; |
| 42 | int ShipTypecxx . . $ Helicopter#ShipType., ShipClasscxx . . $ Helicopter#ShipClass.; |
| 43 | char ClassNamecxx . . $ Helicopter#ClassName.[CLASS_NAME_SIZEcxx . . $ `src/submarine.h:52:9`!]; |
| 44 | char ClassTypecxx . . $ Helicopter#ClassType.[CLASS_TYPE_SIZEcxx . . $ `src/submarine.h:53:9`!]; |
| 45 | int MaxDepthcxx . . $ Helicopter#MaxDepth., Ruddercxx . . $ Helicopter#Rudder.; |
| 46 | int hull_strengthcxx . . $ Helicopter#hull_strength.; |
| 47 | int has_sonarcxx . . $ Helicopter#has_sonar.; |
| 48 | int firing_countdowncxx . . $ Helicopter#firing_countdown.; // make sure we can't rapid fire |
| 49 | float PSCScxx . . $ Helicopter#PSCS.; |
| 50 | MAPcxx . . $ MAP# *mapcxx . . $ Helicopter#map.; |
| 51 | Helicoptercxx . . $ Helicopter# *nextcxx . . $ Helicopter#next.; |
| 52 | |
| 53 | Helicoptercxx . . $ Helicopter#Helicopter(49f6e7a06ebc5aa8).(); |
| 54 | ~cxx . . $ Helicopter#`~Helicopter`(ced63f7c635d850d).Helicoptercxx . . $ Helicopter#(); |
| 55 | |
| 56 | int Initcxx . . $ Helicopter#Init(b126dc7c1de90089).(); |
| 57 | void Cleanupcxx . . $ Helicopter#Cleanup(49f6e7a06ebc5aa8).(); |
| 58 | int Can_Hearcxx . . $ Helicopter#Can_Hear(e898ed6f8282e8).(Submarinecxx . . $ Submarine# *target); |
| 59 | Submarinecxx . . $ Submarine# *Helicopter_AIcxx . . $ Helicopter#Helicopter_AI(d62bab4205bed956).(Submarinecxx . . $ Submarine# *all_ships, Submarinecxx . . $ Submarine# *all_torpedoes); |
| 60 | int Handlecxx . . $ Helicopter#Handle(b126dc7c1de90089).(); |
| 61 | int Load_Classcxx . . $ Helicopter#Load_Class(1ef8e6ec083aabb9).(char *from_file); |
| 62 | int Load_Missioncxx . . $ Helicopter#Load_Mission(89bc1efcdac0ca22).(FILEcxx . . $ FILE# *from_file); |
| 63 | int Check_Statuscxx . . $ Helicopter#Check_Status(b126dc7c1de90089).(); |
| 64 | int Bearing_To_Destinationcxx . . $ Helicopter#Bearing_To_Destination(b126dc7c1de90089).(); |
| 65 | double Distance_To_Destinationcxx . . $ Helicopter#Distance_To_Destination(31fa7155c10fdd13).(); // in yards |
| 66 | double Distance_To_Targetcxx . . $ Helicopter#Distance_To_Target(2de0d0e522051339).(Submarinecxx . . $ Submarine# *target); |
| 67 | Submarinecxx . . $ Submarine# *Find_Targetcxx . . $ Helicopter#Find_Target(9c4f5e11a658b20d).(Submarinecxx . . $ Submarine# *all_ships); |
| 68 | Submarinecxx . . $ Submarine# *Fire_Torpedocxx . . $ Helicopter#Fire_Torpedo(7e9c5f383c561fca).(Submarinecxx . . $ Submarine# *target, char *ship_file); |
| 69 | Submarinecxx . . $ Submarine# *Find_Closest_Friendcxx . . $ Helicopter#Find_Closest_Friend(9c4f5e11a658b20d).(Submarinecxx . . $ Submarine# *ships); |
| 70 | }; |
| 71 | |
| 72 | |
| 73 | |
| 74 | #endif |
| 75 |