| 1 | /*************************************************************************** |
| 2 | main.h - description |
| 3 | ------------------- |
| 4 | begin : Tue Sep 19 2000 |
| 5 | copyright : (C) 2000 by Michael Bridak |
| 6 | email : [email protected] |
| 7 | $Id: main.h,v 1.11 2003/07/18 03:50:00 mbridak Exp $ |
| 8 | ***************************************************************************/ |
| 9 | |
| 10 | /*************************************************************************** |
| 11 | |
| 12 | This program is free software; you can redistribute it and/or modify |
| 13 | it under the terms of the GNU General Public License as published by |
| 14 | the Free Software Foundation; either version 2 of the License. |
| 15 | . |
| 16 | |
| 17 | ***************************************************************************/ |
| 18 | |
| 19 | #ifndef MAIN_H |
| 20 | #define MAIN_Hcxx . . $ `src/main.h:20:9`! |
| 21 | |
| 22 | #ifndef VERSIONcxx . . $ `<built-in>:486:9`! |
| 23 | #define VERSION 1.4 |
| 24 | #endif |
| 25 | |
| 26 | #include "helicopter.h"cxx . . $ `<file>/src/helicopter.h`/ |
| 27 | |
| 28 | // delay between game loops |
| 29 | #define GAME_DELAYcxx . . $ `src/main.h:29:9`! 10 |
| 30 | #define MAP_FACTORcxx . . $ `src/main.h:30:9`! 20 |
| 31 | #define MAX_MAP_SCALEcxx . . $ `src/main.h:31:9`! 500 |
| 32 | |
| 33 | #define PERISCOPE_DEPTHcxx . . $ `src/main.h:33:9`! 50 |
| 34 | #define MAX_SUBScxx . . $ `src/main.h:34:9`! 20 |
| 35 | |
| 36 | #define DEFAULT_SEA_STATEcxx . . $ `src/main.h:36:9`! 3 |
| 37 | #define SHIP_HEIGHTcxx . . $ `src/main.h:37:9`! 100 |
| 38 | |
| 39 | |
| 40 | /** Our main program and control loop |
| 41 | *@author Michael Bridak |
| 42 | */ |
| 43 | // Some defs for easy living. |
| 44 | #define SONARcxx . . $ `src/main.h:44:10`! 1 |
| 45 | #define NAVMAPcxx . . $ `src/main.h:45:10`! 2 |
| 46 | #define TMAcxx . . $ `src/main.h:46:10`! 3 |
| 47 | #define QUITcxx . . $ `src/main.h:47:10`! 4 |
| 48 | #define COMPRESSTIMEcxx . . $ `src/main.h:48:10`! 5 |
| 49 | #define UNCOMPRESSTIMEcxx . . $ `src/main.h:49:10`! 6 |
| 50 | #define INCREASESPEEDcxx . . $ `src/main.h:50:10`! 7 |
| 51 | #define DECREASESPEEDcxx . . $ `src/main.h:51:10`! 8 |
| 52 | #define DUMPSCREENcxx . . $ `src/main.h:52:10`! 9 |
| 53 | #define TURNPORTcxx . . $ `src/main.h:53:10`! 10 |
| 54 | #define TURNSTARBOARDcxx . . $ `src/main.h:54:10`! 11 |
| 55 | #define INCREASEDEPTHcxx . . $ `src/main.h:55:10`! 12 |
| 56 | #define DECREASEDEPTHcxx . . $ `src/main.h:56:10`! 13 |
| 57 | #define INCREASEMAPSCALEcxx . . $ `src/main.h:57:10`! 14 |
| 58 | #define DECREASEMAPSCALEcxx . . $ `src/main.h:58:10`! 15 |
| 59 | #define CENTERDISPLAYcxx . . $ `src/main.h:59:10`! 16 |
| 60 | #define EXTENDARRAYcxx . . $ `src/main.h:60:10`! 17 |
| 61 | #define RETRACTARRAYcxx . . $ `src/main.h:61:10`! 18 |
| 62 | #define STOPWINCHcxx . . $ `src/main.h:62:10`! 19 |
| 63 | #define PAUSEGAMEcxx . . $ `src/main.h:63:10`! 20 |
| 64 | #define SHIPCONTROLcxx . . $ `src/main.h:64:10`! 21 |
| 65 | #define SCROLLMAPUPcxx . . $ `src/main.h:65:10`! 22 |
| 66 | #define SCROLLMAPDOWNcxx . . $ `src/main.h:66:10`! 23 |
| 67 | #define SCROLLMAPLEFTcxx . . $ `src/main.h:67:10`! 24 |
| 68 | #define SCROLLMAPRIGHTcxx . . $ `src/main.h:68:10`! 25 |
| 69 | #define TOGGLESPHERICALTOWEDcxx . . $ `src/main.h:69:10`! 26 |
| 70 | #define TOGGLETRUERELATIVEcxx . . $ `src/main.h:70:10`! 27 |
| 71 | #define UPPERCRTBUTTONcxx . . $ `src/main.h:71:10`! 28 |
| 72 | #define LOWERCRTBUTTONcxx . . $ `src/main.h:72:10`! 29 |
| 73 | #define ASSIGNTRACKERcxx . . $ `src/main.h:73:10`! 30 |
| 74 | #define TRACKER1cxx . . $ `src/main.h:74:10`! 31 |
| 75 | #define TRACKER2cxx . . $ `src/main.h:75:10`! 32 |
| 76 | #define TRACKER3cxx . . $ `src/main.h:76:10`! 33 |
| 77 | #define TRACKER4cxx . . $ `src/main.h:77:10`! 34 |
| 78 | #define ESMcxx . . $ `src/main.h:78:10`! 35 |
| 79 | #define RADARcxx . . $ `src/main.h:79:10`! 36 |
| 80 | |
| 81 | // Radar Event Updates |
| 82 | #define TOGGLER10cxx . . $ `src/main.h:82:10`! 37 |
| 83 | #define TOGGLER20cxx . . $ `src/main.h:83:10`! 38 |
| 84 | #define TOGGLER30cxx . . $ `src/main.h:84:10`! 39 |
| 85 | #define TOGGLER40cxx . . $ `src/main.h:85:10`! 40 |
| 86 | #define TOGGLER50cxx . . $ `src/main.h:86:10`! 41 |
| 87 | #define TOGGLER60cxx . . $ `src/main.h:87:10`! 42 |
| 88 | #define RADARDOWNcxx . . $ `src/main.h:88:10`! 43 |
| 89 | #define RADARUPcxx . . $ `src/main.h:89:10`! 44 |
| 90 | #define RING0cxx . . $ `src/main.h:90:10`! 45 |
| 91 | #define RING5cxx . . $ `src/main.h:91:10`! 46 |
| 92 | #define RING10cxx . . $ `src/main.h:92:10`! 47 |
| 93 | #define RING15cxx . . $ `src/main.h:93:10`! 48 |
| 94 | #define RING20cxx . . $ `src/main.h:94:10`! 49 |
| 95 | #define RING25cxx . . $ `src/main.h:95:10`! 50 |
| 96 | |
| 97 | // Esm Event Updates |
| 98 | #define ESMDOWNcxx . . $ `src/main.h:98:10`! 51 |
| 99 | #define ESMUPcxx . . $ `src/main.h:99:10`! 52 |
| 100 | |
| 101 | // Control Station Updates |
| 102 | #define ASTOPcxx . . $ `src/main.h:102:10`! 53 |
| 103 | #define A13cxx . . $ `src/main.h:103:10`! 54 |
| 104 | #define A23cxx . . $ `src/main.h:104:10`! 55 |
| 105 | #define ASTDcxx . . $ `src/main.h:105:10`! 56 |
| 106 | #define AFULLcxx . . $ `src/main.h:106:10`! 57 |
| 107 | #define AFLKcxx . . $ `src/main.h:107:10`! 58 |
| 108 | #define B13cxx . . $ `src/main.h:108:10`! 59 |
| 109 | #define B23cxx . . $ `src/main.h:109:10`! 60 |
| 110 | #define BSTDcxx . . $ `src/main.h:110:10`! 61 |
| 111 | #define BEMERcxx . . $ `src/main.h:111:10`! 62 |
| 112 | #define DESIGNATECONTACTcxx . . $ `src/main.h:112:10`! 63 |
| 113 | #define SWITCHTARGETcxx . . $ `src/main.h:113:10`! 64 |
| 114 | #define WEAPONScxx . . $ `src/main.h:114:10`! 65 |
| 115 | #define LOAD_TORPEDOcxx . . $ `src/main.h:115:10`! 66 |
| 116 | #define LOAD_NOISEMAKERcxx . . $ `src/main.h:116:10`! 67 |
| 117 | #define UNLOAD_TUBEcxx . . $ `src/main.h:117:10`! 68 |
| 118 | #define FIRE_TUBEcxx . . $ `src/main.h:118:10`! 69 |
| 119 | #define WHICHTUBEcxx . . $ `src/main.h:119:10`! 70 |
| 120 | #define USE_TUBEcxx . . $ `src/main.h:120:10`! 71 |
| 121 | #define CUTARRAYcxx . . $ `src/main.h:121:10`! 72 |
| 122 | #define SEND_PINGcxx . . $ `src/main.h:122:17`! 73 |
| 123 | #define UP_THERMALcxx . . $ `src/main.h:123:17`! 74 |
| 124 | #define HOLD_DEPTHcxx . . $ `src/main.h:124:17`! 75 |
| 125 | #define DOWN_THERMALcxx . . $ `src/main.h:125:17`! 76 |
| 126 | #define GO_PERISCOPE_DEPTHcxx . . $ `src/main.h:126:10`! 77 |
| 127 | #define GO_SURFACEcxx . . $ `src/main.h:127:10`! 78 |
| 128 | |
| 129 | |
| 130 | //globals |
| 131 | |
| 132 | // int ships = 19; // why does ships equal 19, isn't this set in CreateShips? |
| 133 | float flowandambientnoisecxx . . $ flowandambientnoise.; |
| 134 | SDL_Surface *screencxx . . $ screen.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //The screen we are goin to be looking at |
| 135 | SDL_Surface *towedarrayscreencxx . . $ towedarrayscreen.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //scratch blit surface |
| 136 | |
| 137 | // rdm |
| 138 | SDL_Surface *radarscreencxx . . $ radarscreen.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //scratch blit surface |
| 139 | SDL_Surface *esmscreencxx . . $ esmscreen.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //scratch blit surface |
| 140 | SDL_Surface *controlscreencxx . . $ controlscreen.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 141 | |
| 142 | |
| 143 | |
| 144 | SDL_Surface *tempscreencxx . . $ tempscreen.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //scratch screen |
| 145 | SDL_Surface *sonarbuttonupcxx . . $ sonarbuttonup.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 146 | SDL_Surface *sonarbuttondowncxx . . $ sonarbuttondown.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 147 | SDL_Surface *navbuttonupcxx . . $ navbuttonup.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 148 | SDL_Surface *navbuttondowncxx . . $ navbuttondown.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 149 | SDL_Surface *tmabuttonupcxx . . $ tmabuttonup.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 150 | SDL_Surface *tmabuttondowncxx . . $ tmabuttondown.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 151 | SDL_Surface *shipcontrolbuttonupcxx . . $ shipcontrolbuttonup.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;//button element |
| 152 | SDL_Surface *shipcontrolbuttondowncxx . . $ shipcontrolbuttondown.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;//button element |
| 153 | SDL_Surface *esmbuttonupcxx . . $ esmbuttonup.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;//button element |
| 154 | SDL_Surface *esmbuttondowncxx . . $ esmbuttondown.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;//button element |
| 155 | SDL_Surface *radarbuttonupcxx . . $ radarbuttonup.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;//button element |
| 156 | SDL_Surface *radarbuttondowncxx . . $ radarbuttondown.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;//button element |
| 157 | SDL_Surface *quitbuttonupcxx . . $ quitbuttonup.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 158 | SDL_Surface *quitbuttondowncxx . . $ quitbuttondown.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 159 | SDL_Surface *plusbuttonupcxx . . $ plusbuttonup.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 160 | SDL_Surface *plusbuttondowncxx . . $ plusbuttondown.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 161 | SDL_Surface *centerbuttonupcxx . . $ centerbuttonup.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 162 | SDL_Surface *centerbuttondowncxx . . $ centerbuttondown.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 163 | SDL_Surface *leftbuttonupcxx . . $ leftbuttonup.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 164 | SDL_Surface *leftbuttondowncxx . . $ leftbuttondown.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 165 | SDL_Surface *rightbuttonupcxx . . $ rightbuttonup.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 166 | SDL_Surface *rightbuttondowncxx . . $ rightbuttondown.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 167 | SDL_Surface *upbuttonupcxx . . $ upbuttonup.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 168 | SDL_Surface *upbuttondowncxx . . $ upbuttondown.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 169 | SDL_Surface *downbuttonupcxx . . $ downbuttonup.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 170 | SDL_Surface *downbuttondowncxx . . $ downbuttondown.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 171 | SDL_Surface *minusbuttonupcxx . . $ minusbuttonup.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 172 | SDL_Surface *minusbuttondowncxx . . $ minusbuttondown.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; //button element |
| 173 | SDL_Surface *ncscalecxx . . $ ncscale.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 174 | SDL_Surface *scscalecxx . . $ scscale.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 175 | SDL_Surface *truerelcxx . . $ truerel.[2]={NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!}; |
| 176 | SDL_Surface *sphertowedcxx . . $ sphertowed.[2]={NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!}; |
| 177 | SDL_Surface *tb16winchoncxx . . $ tb16winchon.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 178 | SDL_Surface *tb16winchoffcxx . . $ tb16winchoff.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 179 | SDL_Surface *extendtb16cxx . . $ extendtb16.[2]={NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!}; |
| 180 | SDL_Surface *retracttb16cxx . . $ retracttb16.[2]={NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!}; |
| 181 | SDL_Surface *uppercrtoffcxx . . $ uppercrtoff.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 182 | SDL_Surface *uppercrtoncxx . . $ uppercrton.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 183 | SDL_Surface *lowercrtoffcxx . . $ lowercrtoff.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 184 | SDL_Surface *lowercrtoncxx . . $ lowercrton.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 185 | SDL_Surface *assigntrackerwidgetcxx . . $ assigntrackerwidget.[2]={NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!}; |
| 186 | SDL_Surface *tracker1cxx . . $ tracker1.[2]={NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!}; |
| 187 | SDL_Surface *tracker2cxx . . $ tracker2.[2]={NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!}; |
| 188 | SDL_Surface *tracker3cxx . . $ tracker3.[2]={NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!}; |
| 189 | SDL_Surface *tracker4cxx . . $ tracker4.[2]={NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!}; |
| 190 | SDL_Surface *noisemaker_imagecxx . . $ noisemaker_image. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 191 | SDL_Surface *torpedo_imagecxx . . $ torpedo_image. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 192 | |
| 193 | |
| 194 | //a mutex so we don't crash and burn |
| 195 | //when accessing the same globals |
| 196 | //in a callback function. |
| 197 | SDL_mutex *tmamutexcxx . . $ tmamutex.; |
| 198 | |
| 199 | SDL_Rect destination_rectanglecxx . . $ destination_rectangle.; //rectangle structure for blitting |
| 200 | |
| 201 | DFontcxx . . $ DFont# fntcxx . . $ fnt(53aff8785a2e1b8c).(const char*, const char *); |
| 202 | DFontcxx . . $ DFont# fnt2cxx . . $ fnt2(53aff8785a2e1b8c).(const char*, const char *); |
| 203 | |
| 204 | int tube_actioncxx . . $ tube_action. = 0; // what are we doing with a torpedo tube |
| 205 | int tube_to_usecxx . . $ tube_to_use. = -1; // the tube to perform this action on |
| 206 | |
| 207 | int drawsonarcxx . . $ drawsonar.; //flags for UpdateDisplay() |
| 208 | int drawmapcxx . . $ drawmap.; //flags for UpdateDisplay() |
| 209 | int drawtmacxx . . $ drawtma.; //flags for UpdateDisplay() |
| 210 | //rdm |
| 211 | int drawweaponscxx . . $ drawweapons.; // display weapons screen |
| 212 | int drawradarcxx . . $ drawradar.; //flags for UpdateDisplay() |
| 213 | int drawesmcxx . . $ drawesm.; //flags for UpdateDisplay() |
| 214 | int drawcontrolcxx . . $ drawcontrol.; //flags for UpdateDisplay |
| 215 | |
| 216 | int mapscalecxx . . $ mapscale. = 25; |
| 217 | int mapcentercxx . . $ mapcenter. = 1; // by default, center the map on our ship |
| 218 | int timecompressioncxx . . $ timecompression.; |
| 219 | int sonarwidgetcxx . . $ sonarwidget., navwidgetcxx . . $ navwidget., quitwidgetcxx . . $ quitwidget., tmawidgetcxx . . $ tmawidget.; //button pressed flags |
| 220 | int shipcontrolwidgetcxx . . $ shipcontrolwidget., esmwidgetcxx . . $ esmwidget., radarwidgetcxx . . $ radarwidget.; //shouldn't these be bools? |
| 221 | Uint32cxx . . $ Uint32# textcolorcxx . . $ textcolor., blackcxx . . $ black., whitecxx . . $ white., redcxx . . $ red., greencxx . . $ green., yellowcxx . . $ yellow., greycxx . . $ grey., mapcolorcxx . . $ mapcolor.;//Place to hold color info |
| 222 | Uint32cxx . . $ Uint32# dark_greencxx . . $ dark_green., dark_redcxx . . $ dark_red., browncxx . . $ brown., dark_greycxx . . $ dark_grey.; |
| 223 | bool show_spherical_tracescxx . . $ show_spherical_traces. = true, northcentercxx . . $ northcenter. = true, pause_gamecxx . . $ pause_game. = false; |
| 224 | bool assigntrackercxx . . $ assigntracker. = false; |
| 225 | Submarinecxx . . $ Submarine# *current_targetcxx . . $ current_target. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 226 | int update_weapons_screencxx . . $ update_weapons_screen. = TRUEcxx . . $ `src/map.h:10:9`!; |
| 227 | int my_mission_statuscxx . . $ my_mission_status.; |
| 228 | int should_update_everythingcxx . . $ should_update_everything. = TRUEcxx . . $ `src/map.h:10:9`!; |
| 229 | |
| 230 | GameClockcxx . . $ GameClock# Clockcxx . . $ Clock.; |
| 231 | // Submarine Subs[MAX_SUBS]; //Somewhere to put our little floating buddies. |
| 232 | Submarinecxx . . $ Submarine# *Subscxx . . $ Subs. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; // all subs, ships |
| 233 | Submarinecxx . . $ Submarine# *playercxx . . $ player. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 234 | Contactcxx . . $ Contact# Contactscxx . . $ Contacts.[MAX_SUBScxx . . $ `src/main.h:34:9`!]; //Workable contacts. |
| 235 | Submarinecxx . . $ Submarine# *torpedoescxx . . $ torpedoes.; // a linked-list of torpedoes |
| 236 | Helicoptercxx . . $ Helicopter# *helicopterscxx . . $ helicopters.; // a linked-list of helicopters |
| 237 | TowedArraycxx . . $ TowedArray# TB16cxx . . $ TB16.; |
| 238 | TargetMotionAnalysiscxx . . $ TargetMotionAnalysis# Tmacxx . . $ Tma.; |
| 239 | msgcxx . . $ msg# Messagecxx . . $ Message.; |
| 240 | AnBqq5cxx . . $ AnBqq5# SonarStationcxx . . $ SonarStation.(Subscxx . . $ Subs., TB16cxx . . $ TB16., Tmacxx . . $ Tma., Messagecxx . . $ Message.); |
| 241 | |
| 242 | |
| 243 | Radarcxx . . $ Radar# RadarStationcxx . . $ RadarStation.(Subscxx . . $ Subs.); |
| 244 | Esmcxx . . $ Esm# EsmStationcxx . . $ EsmStation.(Subscxx . . $ Subs.); |
| 245 | Controlcxx . . $ Control# ControlStationcxx . . $ ControlStation.(Subscxx . . $ Subs.); |
| 246 | |
| 247 | |
| 248 | //Danger I don't know what I'm doing here |
| 249 | struct positioncxx . . $ position# { |
| 250 | float latcxx . . $ position#lat.; |
| 251 | float loncxx . . $ position#lon.; |
| 252 | }; |
| 253 | stdcxx . . $ std/::listcxx . . $ std/__cxx11/list#<positioncxx . . $ position#> SubPosLogcxx . . $ SubPosLog.; //STL incompetence DANGER! |
| 254 | //End Danger |
| 255 | |
| 256 | |
| 257 | //declarations |
| 258 | void SetupScreencxx . . $ SetupScreen(b45ddcbc8423892c).(bool); |
| 259 | void CreateShipscxx . . $ CreateShips(409e6fe0be183062).(int mission_number, MAPcxx . . $ MAP# *map); |
| 260 | void UpdateSensorscxx . . $ UpdateSensors(49f6e7a06ebc5aa8).(void); |
| 261 | void UpdateDisplaycxx . . $ UpdateDisplay(49f6e7a06ebc5aa8).(void); |
| 262 | void TakeCommandscxx . . $ TakeCommands(49f6e7a06ebc5aa8).(void); |
| 263 | double RelativeBearingcxx . . $ RelativeBearing(1fc01f0df190a722).(Submarinecxx . . $ Submarine# *observer, Submarinecxx . . $ Submarine# *target); |
| 264 | int ReciprocalBearingcxx . . $ ReciprocalBearing(7864480464b09eea).(int bearing); |
| 265 | double AngleOnBowcxx . . $ AngleOnBow(1fc01f0df190a722).(Submarinecxx . . $ Submarine# *observer, Submarinecxx . . $ Submarine# *target); |
| 266 | int maximize360cxx . . $ maximize360(7864480464b09eea). ( int course ); |
| 267 | int minimize360cxx . . $ minimize360(7864480464b09eea). ( int course ); |
| 268 | double CalculateRangecxx . . $ CalculateRange(1fc01f0df190a722).(Submarinecxx . . $ Submarine# *observer, Submarinecxx . . $ Submarine# *target); |
| 269 | void LatLonDifferencecxx . . $ LatLonDifference(c18a688da74552ab).(Submarinecxx . . $ Submarine# *observer, Submarinecxx . . $ Submarine# *target, double *platdif, double *plondif); |
| 270 | void PositionCursorcxx . . $ PositionCursor(3e454b8ccf442868).(int, int); |
| 271 | void ClearScreencxx . . $ ClearScreen(49f6e7a06ebc5aa8).(void); |
| 272 | void Display_Targetcxx . . $ Display_Target(49f6e7a06ebc5aa8).(void); |
| 273 | void DrawMapcxx . . $ DrawMap(49f6e7a06ebc5aa8).(void); |
| 274 | void Draw_Depth_Metercxx . . $ Draw_Depth_Meter(8666c28aa5ada263).(Submarinecxx . . $ Submarine# *my_sub, int which_screen); |
| 275 | /* |
| 276 | void DrawPixel(SDL_Surface *screen, int x, int y, Uint32 Color); |
| 277 | void DrawLine(SDL_Surface *screen, int X1, int Y1, int X2, int Y2, Uint32 Color); |
| 278 | void DrawArc(SDL_Surface *screen, int X1, int Y1, int Radius, int Theta1, int Theta2, Uint32 Color); |
| 279 | void DrawCircle(SDL_Surface *screen, int X1, int Y1, int Radius, Uint32 Color); |
| 280 | void DrawDiamond(SDL_Surface *screen, int X1, int Y1, int Size, char Direction, Uint32 Color); |
| 281 | void DrawBox(SDL_Surface *screen, int X1, int Y1, int Size, char Direction, Uint32 Color); |
| 282 | void DrawRectangle(SDL_Surface *screen, int x1, int y1, int x2, int y2, Uint32 Color); |
| 283 | void DrawCross(SDL_Surface *screen, int X1, int Y1, int Size, char Direction, Uint32 Color); |
| 284 | */ |
| 285 | void PlaceShipscxx . . $ PlaceShips(c0c2e8c812e86a20).(int, int = 0, int = 0, Submarinecxx . . $ Submarine# *target=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); // the int = 0's are default values |
| 286 | // inline void DrawPixel(SDL_Surface *screen, int x, int y, Uint32 Color); |
| 287 | // inline void DrawLine(SDL_Surface *screen, int X1, int Y1, int X2, int Y2, Uint32 Color); |
| 288 | void LoadScreencxx . . $ LoadScreen(d4f767463ce0a6b3).(int screen_to_load); |
| 289 | void ShowStationcxx . . $ ShowStation(d4f767463ce0a6b3).(int station); |
| 290 | void DisplaySonarcxx . . $ DisplaySonar(49f6e7a06ebc5aa8).(); |
| 291 | void DisplayTMAcxx . . $ DisplayTMA(3e454b8ccf442868).(int xoffset=0, int yoffset=0); |
| 292 | void DisplayWeaponscxx . . $ DisplayWeapons(49f6e7a06ebc5aa8).(void); |
| 293 | void LoadWidgetscxx . . $ LoadWidgets(49f6e7a06ebc5aa8).(void); |
| 294 | void UnLoadWidgetscxx . . $ UnLoadWidgets(49f6e7a06ebc5aa8).(void); |
| 295 | void DisplayWidgetscxx . . $ DisplayWidgets(49f6e7a06ebc5aa8).(void); |
| 296 | void DisplayNavigationWidgetscxx . . $ DisplayNavigationWidgets(49f6e7a06ebc5aa8).(); |
| 297 | void DisplayTMAWidgetscxx . . $ DisplayTMAWidgets(49f6e7a06ebc5aa8).(); |
| 298 | void DisplayESMWidgetscxx . . $ DisplayESMWidgets(49f6e7a06ebc5aa8).(); |
| 299 | void DisplayRADARWidgetscxx . . $ DisplayRADARWidgets(49f6e7a06ebc5aa8).(); |
| 300 | void ResetWidgetFlagscxx . . $ ResetWidgetFlags(49f6e7a06ebc5aa8).(void); |
| 301 | inline int RandIntcxx . . $ RandInt(7864480464b09eea).(int to); |
| 302 | void MapIconcxx . . $ MapIcon(6fb2c7d311165c4f).(int x, int y, int ShipType, int Friend, Uint32cxx . . $ Uint32# color); |
| 303 | void DirectionalPointercxx . . $ DirectionalPointer(6fb2c7d311165c4f).(int X, int Y, int Heading, int speed, Uint32cxx . . $ Uint32# Color); |
| 304 | int InBafflescxx . . $ InBaffles(c0e618666fc8869c).(Submarinecxx . . $ Submarine# *observer, Submarinecxx . . $ Submarine# *target, int sensor); |
| 305 | void SoundEnvironmentcxx . . $ SoundEnvironment(49f6e7a06ebc5aa8).(void); |
| 306 | float Any_Detectioncxx . . $ Any_Detection(9eeec24301e7a499).(double Range, Submarinecxx . . $ Submarine# *observer, Submarinecxx . . $ Submarine# *target); |
| 307 | float Radar_Detectioncxx . . $ Radar_Detection(9eeec24301e7a499).(double Range, Submarinecxx . . $ Submarine# *observer, Submarinecxx . . $ Submarine# *target); |
| 308 | float Esm_Detectioncxx . . $ Esm_Detection(9eeec24301e7a499).(double Range, Submarinecxx . . $ Submarine# *observer, Submarinecxx . . $ Submarine# *target); |
| 309 | // float Sonar_Detection(double Range, int ObserverShipId, int TargetShipId); |
| 310 | float Sonar_Detection_Newcxx . . $ Sonar_Detection_New(9eeec24301e7a499).(double Range, Submarinecxx . . $ Submarine# *observer, Submarinecxx . . $ Submarine# *target); |
| 311 | inline int Clampcxx . . $ Clamp(7864480464b09eea).(int); |
| 312 | inline double Clampcxx . . $ Clamp(447c67c6676f75c3).(double); |
| 313 | Uint32cxx . . $ Uint32# TmaTimercxx . . $ TmaTimer(7f8ca09206cb022b).(Uint32cxx . . $ Uint32# interval, void *param); |
| 314 | Uint32cxx . . $ Uint32# timerfunccxx . . $ timerfunc(7f8ca09206cb022b).(Uint32cxx . . $ Uint32# interval, void *param); |
| 315 | |
| 316 | Submarinecxx . . $ Submarine# *Add_Shipcxx . . $ Add_Ship(d62bab4205bed956).(Submarinecxx . . $ Submarine# *all_torpedoes, Submarinecxx . . $ Submarine# *new_torpedo); |
| 317 | Submarinecxx . . $ Submarine# *Remove_Shipcxx . . $ Remove_Ship(d62bab4205bed956).(Submarinecxx . . $ Submarine# *all_torpedoes, Submarinecxx . . $ Submarine# *old_torpedo); |
| 318 | void Remove_Inactive_Shipcxx . . $ Remove_Inactive_Ship(a9ab5cc9dc811b12).(Submarinecxx . . $ Submarine# *victim); // find and remove inactive ship |
| 319 | Helicoptercxx . . $ Helicopter# *Add_Helicoptercxx . . $ Add_Helicopter(db7b114f298089df).(Helicoptercxx . . $ Helicopter# *all_helicopters, Helicoptercxx . . $ Helicopter# *new_helicopter); |
| 320 | Helicoptercxx . . $ Helicopter# *Remove_Helicoptercxx . . $ Remove_Helicopter(db7b114f298089df).(Helicoptercxx . . $ Helicopter# *all_helicopters, Helicoptercxx . . $ Helicopter#*old_helicopter); |
| 321 | |
| 322 | #endif |
| 323 |