Update of /cvsroot/gcblue/gcb_wx/include/sim
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27636/include/sim
Modified Files:
tcGameObject.h tcGuidanceState.h tcLauncherState.h
tcPlatformObject.h
Log Message:
Multiplayer related updates
Index: tcGameObject.h
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/include/sim/tcGameObject.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** tcGameObject.h 9 Apr 2004 03:08:07 -0000 1.15
--- tcGameObject.h 13 Apr 2004 00:24:37 -0000 1.16
***************
*** 42,45 ****
--- 42,46 ----
class tcSimState;
+ class tcStream;
/**
***************
*** 67,72 ****
bool isVisible;
! void LoadFromStream(std::stringstream& buffer);
! void SaveToStream(std::stringstream& buffer);
};
--- 68,73 ----
bool isVisible;
! tcStream& operator<<(tcStream& stream);
! tcStream& operator>>(tcStream& stream);
};
***************
*** 108,113 ****
virtual void PrintToFile(tcFile&);
virtual void SaveToFile(tcFile& file);
! virtual void LoadFromStream(std::stringstream& buffer);
! virtual void SaveToStream(std::stringstream& buffer);
virtual void LoadFromFile(tcFile& file);
virtual void Serialize(tcFile& file, bool mbLoad);
--- 109,116 ----
virtual void PrintToFile(tcFile&);
virtual void SaveToFile(tcFile& file);
! virtual tcStream& operator<<(tcStream& stream);
! virtual tcStream& operator>>(tcStream& stream);
!
!
virtual void LoadFromFile(tcFile& file);
virtual void Serialize(tcFile& file, bool mbLoad);
Index: tcGuidanceState.h
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/include/sim/tcGuidanceState.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** tcGuidanceState.h 4 Dec 2003 05:15:22 -0000 1.1
--- tcGuidanceState.h 13 Apr 2004 00:24:37 -0000 1.2
***************
*** 25,35 ****
#include "simmath.h"
/**
*
*/
! typedef struct _guidanceparams {
long mnTargetID;
double mfInterceptTime;
! } tsGuidanceParameters;
/**
--- 25,38 ----
#include "simmath.h"
+ class tcStream;
+
/**
*
*/
! struct tsGuidanceParameters
! {
long mnTargetID;
double mfInterceptTime;
! };
/**
***************
*** 51,54 ****
--- 54,59 ----
void SetAltitude(float afNewAltitude_m) {mfGoalAltitude_m=afNewAltitude_m;}
void GetKinGoal(tcKinematics& rsKinCurrent,tcKinematics& rsKinGoal);
+ tcStream& operator<<(tcStream& stream);
+ tcStream& operator>>(tcStream& stream);
};
#endif
\ No newline at end of file
Index: tcLauncherState.h
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/include/sim/tcLauncherState.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** tcLauncherState.h 1 Feb 2004 22:19:08 -0000 1.5
--- tcLauncherState.h 13 Apr 2004 00:24:37 -0000 1.6
***************
*** 40,43 ****
--- 40,44 ----
class tcSimState;
class tcRadar;
+ class tcStream;
/**
***************
*** 65,68 ****
--- 66,72 ----
tcRadar *fireControlSensor; ///< sensor for fire control guidance
unsigned fireControlSensorIdx; ///< index of sensor on parent platform
+
+ tcStream& operator<<(tcStream& buffer);
+ tcStream& operator>>(tcStream& buffer);
};
***************
*** 102,105 ****
--- 106,111 ----
bool IsSeekerLaunch(unsigned anLauncher);
+ tcStream& operator<<(tcStream& buffer);
+ tcStream& operator>>(tcStream& buffer);
void Serialize(tcFile& file, bool abLoad);
void SetFireControlSensor(unsigned nLauncher, tcRadar* radar, unsigned sensorIdx);
Index: tcPlatformObject.h
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/include/sim/tcPlatformObject.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** tcPlatformObject.h 15 Feb 2004 19:47:22 -0000 1.13
--- tcPlatformObject.h 13 Apr 2004 00:24:37 -0000 1.14
***************
*** 29,32 ****
--- 29,34 ----
using namespace AI;
+ class tcStream;
+
namespace Database
{
***************
*** 82,85 ****
--- 84,90 ----
void LoadFromFile(tcFile& file);
virtual void Serialize(tcFile& file, bool mbLoad);
+ virtual tcStream& operator<<(tcStream& stream);
+ virtual tcStream& operator>>(tcStream& stream);
+
tcPlatformObject(void);
|