| 1 | /*************************************************************************** |
| 2 | esm.h - description |
| 3 | ------------------- |
| 4 | begin : Sat Mar 16 2002 |
| 5 | copyright : (C) 2002 by Michael Bridak |
| 6 | email : [email protected] |
| 7 | $Id: esm.h,v 1.5 2003/04/14 05:51:03 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 ESM_H |
| 20 | #define ESM_Hcxx . . $ `src/esm.h:20:9`! |
| 21 | |
| 22 | |
| 23 | /** |
| 24 | *@author Michael Bridak |
| 25 | */ |
| 26 | |
| 27 | class Esmcxx . . $ Esm# { |
| 28 | public: |
| 29 | |
| 30 | Submarinecxx . . $ Submarine# *Subscxx . . $ Esm#Subs.; |
| 31 | SDL_Rect srccxx . . $ Esm#src., destcxx . . $ Esm#dest.; |
| 32 | |
| 33 | SDL_Surface *esmscreencxx . . $ Esm#esmscreen.; |
| 34 | SDL_Surface *tempscreencxx . . $ Esm#tempscreen.; |
| 35 | SDL_Surface *blipcxx . . $ Esm#blip.; |
| 36 | SDL_Surface *sweep1cxx . . $ Esm#sweep1.; |
| 37 | SDL_Surface *ClearEsmcxx . . $ Esm#ClearEsm.; |
| 38 | SDL_Surface *ClearEsm2cxx . . $ Esm#ClearEsm2.; |
| 39 | |
| 40 | Esmcxx . . $ Esm#Esm(a9ab5cc9dc811b12).(Submarinecxx . . $ Submarine# *temp); |
| 41 | ~cxx . . $ Esm#`~Esm`(ced63f7c635d850d).Esmcxx . . $ Esm#(); |
| 42 | |
| 43 | void RaiseMastcxx . . $ Esm#RaiseMast(49f6e7a06ebc5aa8).(); // Raise esm mast |
| 44 | void LowerMastcxx . . $ Esm#LowerMast(49f6e7a06ebc5aa8).(); // Lower esm mast |
| 45 | void ToggleMastcxx . . $ Esm#ToggleMast(49f6e7a06ebc5aa8).(); //Toggle Mast Status |
| 46 | |
| 47 | // Set functions |
| 48 | void setRangeScalecxx . . $ Esm#setRangeScale(d4f767463ce0a6b3).(int); // How far do we want to look! |
| 49 | void setRangeRingcxx . . $ Esm#setRangeRing(d4f767463ce0a6b3).(int); // Used on the display panel |
| 50 | |
| 51 | |
| 52 | // Get functions |
| 53 | bool getMastStatuscxx . . $ Esm#getMastStatus(50ce9a9e25b4a850).() const; // Get the current mast position |
| 54 | int getAntennaHeightcxx . . $ Esm#getAntennaHeight(adc74905ab378dc7).(int, int) const; // Get current mast height |
| 55 | int getBearingcxx . . $ Esm#getBearing(d4c1ccc1fe1a56c0).(int, int, int, int); // Get the Esm bearing |
| 56 | int getSignalStrengthcxx . . $ Esm#getSignalStrength(6d2a54b2a492188d).(Submarinecxx . . $ Submarine# *, int, int, int, bool, int); // Get the Esm signal strength |
| 57 | int getEsmHorizoncxx . . $ Esm#getEsmHorizon(2326284602b0bb2d).(int, int, int); // Get the Esm Horizon |
| 58 | |
| 59 | bool isTargetVisiblecxx . . $ Esm#isTargetVisible(196be57137963973).(Submarinecxx . . $ Submarine# *, int TargetRange, int ObserverDepth, |
| 60 | int TargetHeight, bool TargetRadar, int SeaState); |
| 61 | |
| 62 | void ClearScreencxx . . $ Esm#ClearScreen(49f6e7a06ebc5aa8).(); |
| 63 | |
| 64 | void LoadWidgetscxx . . $ Esm#LoadWidgets(49f6e7a06ebc5aa8).(); |
| 65 | |
| 66 | void DisplayWidgetscxx . . $ Esm#DisplayWidgets(49f6e7a06ebc5aa8).(); |
| 67 | |
| 68 | void DisplayContactscxx . . $ Esm#DisplayContacts(49f6e7a06ebc5aa8).(); |
| 69 | void InitGraphicscxx . . $ Esm#InitGraphics(fac4f6e207c3be86).(SDL_Surface *temp, SDL_Surface *tempradarscreen); |
| 70 | void DLinecxx . . $ Esm#DLine(1738f3ac1892ed0c).(SDL_Surface *screen, int X1, int Y1, int X2, int Y2, Uint32cxx . . $ Uint32# Color); |
| 71 | void DPixelcxx . . $ Esm#DPixel(6f3c846de5417090).(SDL_Surface *screen, int x, int y, Uint32cxx . . $ Uint32# color); |
| 72 | |
| 73 | |
| 74 | private: |
| 75 | SDL_Rect destination_rectanglecxx . . $ Esm#destination_rectangle.; |
| 76 | SDL_Rect source_rectanglecxx . . $ Esm#source_rectangle.; |
| 77 | SDL_Surface *screencxx . . $ Esm#screen.; |
| 78 | |
| 79 | SDL_Surface *mastdownoffcxx . . $ Esm#mastdownoff.; |
| 80 | SDL_Surface *mastdownoncxx . . $ Esm#mastdownon.; |
| 81 | |
| 82 | SDL_Surface *mastupoffcxx . . $ Esm#mastupoff.; |
| 83 | SDL_Surface *mastuponcxx . . $ Esm#mastupon.; |
| 84 | |
| 85 | SDL_Surface *stylluscxx . . $ Esm#styllus.; |
| 86 | |
| 87 | |
| 88 | bool Mastcxx . . $ Esm#Mast.; |
| 89 | int MastHeightcxx . . $ Esm#MastHeight.; |
| 90 | int CurrentAntennaHeightcxx . . $ Esm#CurrentAntennaHeight.; |
| 91 | int EsmHorizoncxx . . $ Esm#EsmHorizon.; |
| 92 | int bearingcxx . . $ Esm#bearing.; |
| 93 | int SignalStrengthcxx . . $ Esm#SignalStrength.; |
| 94 | int DetectProbcxx . . $ Esm#DetectProb.; |
| 95 | int xcxx . . $ Esm#x.; |
| 96 | int ycxx . . $ Esm#y.; |
| 97 | Uint32cxx . . $ Uint32# orangecxx . . $ Esm#orange., blackcxx . . $ Esm#black.; |
| 98 | |
| 99 | static char textcxx . . $ Esm#text.[120]; |
| 100 | DFontcxx . . $ DFont# largeFontcxx . . $ Esm#largeFont(53aff8785a2e1b8c).(const char*, const char *); |
| 101 | DFontcxx . . $ DFont# fntcxx . . $ Esm#fnt(53aff8785a2e1b8c).(const char*, const char *); |
| 102 | DFontcxx . . $ DFont# fnt2cxx . . $ Esm#fnt2(53aff8785a2e1b8c).(const char*, const char *); |
| 103 | }; |
| 104 | |
| 105 | #endif |