Changeset 6371 in orxonox.OLD for branches/network/src/story_entities/story_entity.cc
- Timestamp:
- Dec 31, 2005, 2:32:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/story_entities/story_entity.cc
r6153 r6371 23 23 24 24 25 25 /** 26 * default constructor initializes all needed data 27 */ 26 28 StoryEntity::StoryEntity () 27 29 { … … 33 35 } 34 36 37 38 /** deconstructor 39 */ 35 40 StoryEntity::~StoryEntity () {} 36 41 37 42 38 /**39 * sets the story ID40 41 sets the story id of the current entity, this enables it to be identified in a42 global context.43 */44 void StoryEntity::setStoryID(int storyID)45 {46 this->storyID = storyID;47 }48 49 50 /**51 * this reads the story id of the current entity52 * @returns the story entity id53 */54 int StoryEntity::getStoryID()55 {56 return this->storyID;57 }58 59 60 /**61 * sets the id of the next story entity62 63 StoryEntities can choose their following entity themselfs. the entity id defined here64 will be startet after this entity ends. this can be convenient if you want to have a65 non linear story with switches.66 */67 void StoryEntity::setNextStoryID(int nextStoryID)68 {69 this->nextStoryID = nextStoryID;70 }71 72 /**73 * gets the story id of the current entity74 * @returns story id75 */76 int StoryEntity::getNextStoryID()77 {78 return this->nextStoryID;79 }
Note: See TracChangeset
for help on using the changeset viewer.