31 #include "hpl1/engine/game/SaveGame.h" 32 #include "hpl1/engine/math/MathTypes.h" 33 #include "hpl1/engine/system/SystemTypes.h" 41 kSaveData_BaseClass(iEntity) {
42 kSaveData_ClassInit(iEntity) public :
int mlParentNodeId;
55 mbIsActive(
true), mpParentNode(NULL) {}
59 virtual tString GetEntityType() = 0;
61 virtual void UpdateLogic(
float afTimeStep) {}
63 tString &GetName() {
return msName; }
64 void SetName(
const tString &asName) { msName = asName; }
66 iNode *GetParent() {
return mpParentNode; }
67 void SetParent(
iNode *apNode) { mpParentNode = apNode; }
68 bool HasParent() {
return mpParentNode != NULL; }
70 bool IsActive() {
return mbIsActive; }
71 void SetActive(
bool abActive) { mbIsActive = abActive; }
72 virtual bool IsVisible() {
return mbIsVisible; }
73 virtual void SetVisible(
bool abVisible) { mbIsVisible = abVisible; }
96 #endif // HPL_ENTITY2D_H
virtual iSaveData * CreateSaveData()
Definition: SaveGame.h:130
Definition: SystemTypes.h:411
Definition: SaveGame.h:111
virtual void LoadFromSaveData(iSaveData *apSaveData)
virtual void SaveDataSetup(cSaveObjectHandler *apSaveObjectHandler, cGame *apGame)
Definition: list_intern.h:51
Definition: SaveGame.h:183
virtual void SaveToSaveData(iSaveData *apSaveData)