[Gcblue-commits] gcb_wx/include/sim tcPlatformObject.h,1.14,1.15
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2004-04-29 00:05:22
|
Update of /cvsroot/gcblue/gcb_wx/include/sim In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22764/include/sim Modified Files: tcPlatformObject.h Log Message: Index: tcPlatformObject.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/sim/tcPlatformObject.h,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** tcPlatformObject.h 13 Apr 2004 00:24:37 -0000 1.14 --- tcPlatformObject.h 29 Apr 2004 00:05:13 -0000 1.15 *************** *** 44,47 **** --- 44,61 ---- { public: + enum + { + HEADING_CMD = 0x0001, + SPEED_CMD = 0x0002, + ALT_CMD = 0x0004, + LAUNCH_CMD = 0x0008, + AI_CMD = 0x0010, + NEW_CMD = 0x8000 + }; + enum + { + UPDATE_GUIDANCE = 0x01 + }; + float fuel_kg; ///< current fuel tcLauncherState mcLauncherState; *************** *** 55,58 **** --- 69,80 ---- tsFormationParameters msFormationParameters; tcGenericDBObject *mpDBObject; + /** + * bits set when new command is received from UI (client) or from client via + * mp interface (server). + * bits cleared when matching state update received (client) or state update is + * transmitted (server) + */ + int commandStatus; + virtual void Clear(void); *************** *** 73,78 **** virtual void Launch(tnPoolIndex& rnKey, unsigned& rnLauncher); virtual void RandInitNear(float afLon_deg, float afLat_deg); ! virtual void SetAltitude(float new_altitude_m) {mcGS.SetAltitude(new_altitude_m);} ! virtual void SetHeading(float afNewHeading) {mcGS.SetHeading(afNewHeading);} virtual void SetSpeed(float afNewSpeed); virtual int SetLaunch(int anLauncher, int anQuantity); --- 95,100 ---- virtual void Launch(tnPoolIndex& rnKey, unsigned& rnLauncher); virtual void RandInitNear(float afLon_deg, float afLat_deg); ! virtual void SetAltitude(float new_altitude_m); ! virtual void SetHeading(float afNewHeading); virtual void SetSpeed(float afNewSpeed); virtual int SetLaunch(int anLauncher, int anQuantity); *************** *** 98,101 **** --- 120,124 ---- virtual void ApplyRestrictions(void); virtual void SetFireControlSensors(); + void LoadCommandParam(tcStream& stream, float& param, int flag); ///< used for multiplayer serialization virtual void Move(float dt_s); virtual void UpdateClimb(float dt_s) {}; |