Changeset 6839 in orxonox.OLD for trunk/src/story_entities/story_entity.h
- Timestamp:
- Jan 30, 2006, 12:52:08 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/story_entity.h
r6837 r6839 67 67 /** gets the story id of the current entity @returns story id */ 68 68 inline int getNextStoryID() { return this->nextStoryID; } 69 /** sets the name of this StoryEntity @param name name */70 inline void setName(const char* name) { this->name = name; }71 /** @returns the name of this StoryEntity */72 inline const char* getName() { return this->name; }73 69 /** sets the descroption of this StoryEntity @param name name */ 74 70 inline void setDescription(const char* description) { this->description = description; } 75 71 /** @returns the description of this StoryEntity */ 76 72 inline const char* getDescription() { return this->description; } 73 /** toggle the menu visibility: SimpleMenu specific */ 74 inline void addToGameMenu(int toggle) { this->bMenuEntry = (bool)toggle; } 75 /** @returns true if the GameWorld should be contained in the SimpleMenu: SimpleMenu specific */ 76 inline bool isContainedInMenu() { return this->bMenuEntry; } 77 77 78 78 … … 86 86 int storyID; //!< this is the number of this entity, identifying it in a list/tree... 87 87 int nextStoryID; //!< if this entity has finished, this entity shall be called 88 const char* name; //!< name of this StoryEntity89 88 const char* description;//!< the description of the StoryEntity 89 bool bMenuEntry; //!< If true, this GameWorld apears in the SimpleMenu: SimpleMenu specific 90 90 }; 91 91
Note: See TracChangeset
for help on using the changeset viewer.