Changeset 6992 in orxonox.OLD for trunk/src/story_entities/story_entity.h
- Timestamp:
- Feb 2, 2006, 10:55:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/story_entity.h
r6853 r6992 60 60 /** sets the story id of the current entity, this enables it to be identified in a global context. @returns the story id */ 61 61 inline int getStoryID() { return this->storyID; } 62 /** sets the id of the next story entity: StoryEntities can choose their following entity themselfs. 63 * the entity id defined here will be startet after this entity ends. this can be convenient if you 64 * want to have a non linear story with switches. 65 * @param nextStoryID the story id of the next StoryEntity */ 66 inline void setNextStoryID(int nextStoryID) { this->nextStoryID = nextStoryID; } 62 63 void setLoadFile( const char* fileName); 64 /** @returns the Filename this StoryEntity was loaded with */ 65 const char* getLoadFile() const { return this->loadFile; } 66 67 void setNextStoryID(int nextStoryID); 67 68 /** gets the story id of the current entity @returns story id */ 68 inline int getNextStoryID() { return this->nextStoryID; }69 inline int getNextStoryID() const { return this->nextStoryID; } 69 70 inline void setDescription(const char* description); 70 71 /** @returns the description of this StoryEntity */ 71 72 inline const char* getDescription() { return this->description; } 73 74 75 72 76 /** toggle the menu visibility: SimpleMenu specific */ 73 77 inline void addToGameMenu(int toggle) { this->bMenuEntry = (bool)toggle; } … … 90 94 91 95 private: 92 int storyID; //!< this is the number of this entity, identifying it in a list/tree... 93 int nextStoryID; //!< if this entity has finished, this entity shall be called 94 char* description; //!< the description of the StoryEntity 95 char* menuItemImage; //!< the item image of the StoryEntity 96 char* menuScreenshoot; //!< the screenshoot of the StoryEntity 97 bool bMenuEntry; //!< If true, this GameWorld apears in the SimpleMenu: SimpleMenu specific 96 int storyID; //!< this is the number of this entity, identifying it in a list/tree... 97 int nextStoryID; //!< if this entity has finished, this entity shall be called 98 char* loadFile; //!< The file from which this world is loaded 99 100 char* description; //!< the description of the StoryEntity 101 char* menuItemImage; //!< the item image of the StoryEntity 102 char* menuScreenshoot; //!< the screenshoot of the StoryEntity 103 bool bMenuEntry; //!< If true, this GameWorld apears in the SimpleMenu: SimpleMenu specific 98 104 }; 99 105
Note: See TracChangeset
for help on using the changeset viewer.