Changeset 4592 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- Jun 10, 2005, 7:17:22 PM (20 years ago)
- Location:
- orxonox/trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/story_entity.cc
r3629 r4592 1 1 2 2 3 /* 3 /* 4 4 orxonox - the future of 3D-vertical-scrollers 5 5 … … 13 13 ### File Specific: 14 14 main-programmer: Patrick Boenzli 15 co-programmer: 15 co-programmer: 16 16 */ 17 17 … … 24 24 25 25 26 StoryEntity::StoryEntity () {} 26 StoryEntity::StoryEntity () 27 { 28 this->setClassID(CL_STORY_ENTITY); 29 } 27 30 StoryEntity::~StoryEntity () {} 28 31 29 32 30 /** 33 /** 31 34 \brief sets the story ID 32 35 33 sets the story id of the current entity, this enables it to be identified in a 36 sets the story id of the current entity, this enables it to be identified in a 34 37 global context. 35 38 */ … … 40 43 41 44 42 /** 45 /** 43 46 \brief this reads the story id of the current entity 44 47 \returns the story entity id … … 50 53 51 54 52 /** 55 /** 53 56 \brief sets the id of the next story entity 54 57 55 58 StoryEntities can choose their following entity themselfs. the entity id defined here 56 59 will be startet after this entity ends. this can be convenient if you want to have a … … 62 65 } 63 66 64 /** 67 /** 65 68 \brief gets the story id of the current entity 66 69 \returns story id … … 81 84 {} 82 85 83 /** 86 /** 84 87 \brief loads the current entity 85 88 … … 92 95 93 96 94 /** 95 \brief initialize the entity before use. 97 /** 98 \brief initialize the entity before use. 96 99 \returns an error code if not able to apply. 97 100 98 After execution of this function, the Entity is ready to be played/executed, 101 After execution of this function, the Entity is ready to be played/executed, 99 102 this shifts the initialisation work before the execution - very important... 100 103 init() is exec shortly before start() … … 104 107 105 108 106 /** 109 /** 107 110 \brief starts the entity with the choosen id. only for entities with lists. 108 111 \param story id … … 118 121 119 122 120 /** 123 /** 121 124 \brief starts the current entity 122 \returns error code if this action has caused a error 125 \returns error code if this action has caused a error 123 126 */ 124 127 ErrorMessage StoryEntity::start() … … 126 129 127 130 128 /** 131 /** 129 132 \brief pause the current entity 130 133 \returns error code if this action has caused a error … … 136 139 137 140 138 /** 141 /** 139 142 \brief resumes a pause 140 143 \returns error code if this action has caused a error … … 146 149 147 150 148 /** 151 /** 149 152 \brief stops the current entity 150 153 \returns error code if this action has caused a error … … 160 163 161 164 162 /** 163 \brief destroys and cleans up the current entity. 165 /** 166 \brief destroys and cleans up the current entity. 164 167 165 this cleans up ressources before the deconstructor is called. for terminating 168 this cleans up ressources before the deconstructor is called. for terminating 166 169 the entity please use the stop() function. 167 170 */ … … 170 173 171 174 172 /** 175 /** 173 176 \brief this displays the load screen 174 177 175 it will need some time to load maps or things like that. to inform the user about 178 it will need some time to load maps or things like that. to inform the user about 176 179 progress and to just show him/her something for the eyes, put here this stuff 177 180 */ … … 180 183 181 184 182 /** 185 /** 183 186 \brief undisplay the load screen 184 187 -
orxonox/trunk/src/story_entities/world.cc
r4574 r4592 520 520 new PhysicsConnection(testEntity, gravity); 521 521 522 522 // printing out some debug stuff 523 523 NullParent::getInstance()->debug(0); 524 this->localPlayer->whatIs(); 525 this->whatIs(); 524 526 } 525 527
Note: See TracChangeset
for help on using the changeset viewer.