Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6839 in orxonox.OLD for trunk/src/story_entities/story_entity.h


Ignore:
Timestamp:
Jan 30, 2006, 12:52:08 AM (18 years ago)
Author:
patrick
Message:

trunk: the menu is processing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/story_entity.h

    r6837 r6839  
    6767  /**  gets the story id of the current entity @returns story id */
    6868  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; }
    7369  /** sets the descroption of this StoryEntity @param name name */
    7470  inline void setDescription(const char* description) { this->description = description; }
    7571  /** @returns the description of this StoryEntity */
    7672  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; }
    7777
    7878
     
    8686    int storyID;            //!< this is the number of this entity, identifying it in a list/tree...
    8787    int nextStoryID;        //!< if this entity has finished, this entity shall be called
    88     const char* name;       //!< name of this StoryEntity
    8988    const char* description;//!< the description of the StoryEntity
     89    bool        bMenuEntry; //!< If true, this GameWorld apears in the SimpleMenu: SimpleMenu specific
    9090};
    9191
Note: See TracChangeset for help on using the changeset viewer.