![]() |
VR-Link API Documentation for HLA 1.3
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 00006 #ifndef arealObjectSR_H 00007 #define arealObjectSR_H 00008 00013 00014 #include "envObjectSR.h" 00015 #include "objectType.h" 00016 00017 #if DtHLA 00018 class DT_DLL_VL DtHlaObjectManager; 00019 #else 00020 class DT_DLL_VL DtDisObjectManager; 00021 #endif 00022 00023 00033 class DT_DLL_VL DtArealObjectRepository : public DtEnvironmentObjectRepository 00034 { 00035 public: 00036 00037 //default constructor 00038 DtArealObjectRepository(); 00039 00040 //destructor 00041 virtual ~DtArealObjectRepository(); 00042 00043 //copy constructor 00044 DtArealObjectRepository(const DtArealObjectRepository& orig); 00045 00046 //assignment operator 00047 DtArealObjectRepository& operator=( const DtArealObjectRepository& orig); 00048 00050 virtual DtStateRepository* clone(bool copy) const; 00051 00052 static DtArealObjectRepository* create(); 00053 00057 virtual bool setNumberOfPoints(int newNumberOfPoints); 00058 virtual int numberOfPoints() const; 00059 00062 virtual bool setPointLocation(int index, const DtVector& point); 00063 virtual bool getPointLocation(int index, DtVector& point) const; 00064 00066 virtual void setPercentComplete(const DtU32 percent); 00067 virtual DtU32 percentComplete() const; 00068 00070 virtual void setDamagedAppearance(const DtDamageState damage); 00071 virtual DtDamageState damagedAppearance() const; 00072 00074 virtual void setObjectPreDistributed(bool predistributed); 00075 virtual bool objectPreDistributed() const; 00076 00078 virtual void setDeactivated(bool onOff); 00079 virtual bool deactivated() const; 00080 00082 virtual void setSmoking(bool onOff); 00083 virtual bool smoking() const; 00084 00086 virtual void setFlaming(bool onOff); 00087 virtual bool flaming() const; 00088 00090 virtual void setBreachedStatus(const DtBreachedStatus status); 00091 virtual DtBreachedStatus breachedStatus() const; 00092 00094 virtual void setMineCount(const DtU32 numMines); 00095 virtual DtU32 mineCount() const; 00096 00098 virtual void printData() const; 00099 00101 virtual void printDataToStream(std::ostream& stream) const; 00102 00103 protected: 00104 00105 int myNumberOfPoints; 00106 DtVector* myPoints; 00107 00108 DtU32 myPercentComplete; 00109 DtDamageState myDamagedAppearance; 00110 bool myObjectPreDistributed; 00111 bool myDeactivated; 00112 bool mySmoking; 00113 bool myFlaming; 00114 00115 //For MinefieldObject 00116 DtBreachedStatus myBreachedStatus; 00117 DtU32 myMineCount; 00118 00119 }; 00120 00121 #endif //arealObjectSR_H 00122