Changeset 6152 in orxonox.OLD for trunk/src/story_entities/story_entity.h
- Timestamp:
- Dec 17, 2005, 6:52:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/story_entity.h
r5039 r6152 19 19 virtual ~StoryEntity (); 20 20 21 bool isInit; //! if the entity is initialized, this has to be true22 bool isPaused; //! is true if the entity is paused23 21 24 virtual ErrorMessage preLoad(); 25 virtual ErrorMessage load(); 26 virtual ErrorMessage init(); 27 virtual ErrorMessage start(int storyID); 28 virtual ErrorMessage start(); 29 virtual ErrorMessage pause(); 30 virtual ErrorMessage resume(); 31 virtual ErrorMessage stop(); 32 virtual ErrorMessage destroy(); 22 // INIT AND LOAD // 23 virtual ErrorMessage preLoad() {}; 24 virtual ErrorMessage load() {}; 25 virtual ErrorMessage postLoad() {}; 26 virtual ErrorMessage check() {}; 33 27 34 35 virtual void displayLoadScreen(); 36 virtual void releaseLoadScreen(); 28 // RUNNING // 29 virtual ErrorMessage preStart() {}; 30 virtual ErrorMessage start() = 0; 31 virtual ErrorMessage pause() = 0; 32 virtual ErrorMessage rewind() {}; 33 virtual ErrorMessage suspend() {}; 34 virtual ErrorMessage resume() = 0; 35 virtual ErrorMessage stop() = 0; 36 virtual ErrorMessage destroy() {}; 37 37 38 38 void setStoryID(int storyID); … … 42 42 int getNextStoryID(); 43 43 44 protected: 45 bool isInit; //!< if the entity is initialized, this has to be true. 46 bool readyToRun; //!< If the entity is ready to run -> post-check. 47 bool isPaused; //!< is true if the entity is paused 48 bool isSuspended; //!< if the Entity is suspended. 44 49 45 50 private: 46 int storyID; //!this is the number of this entity, identifying it in a list/tree...47 int nextStoryID; //!if this entity has finished, this entity shall be called51 int storyID; //!< this is the number of this entity, identifying it in a list/tree... 52 int nextStoryID; //!< if this entity has finished, this entity shall be called 48 53 }; 49 54
Note: See TracChangeset
for help on using the changeset viewer.