Changeset 3608 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- Mar 20, 2005, 11:37:26 PM (20 years ago)
- Location:
- orxonox/trunk/src/story_entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/campaign.cc
r3472 r3608 20 20 #include "world.h" 21 21 #include "camera.h" 22 #include "story_entity.h" 22 //#include "story_entity.h" 23 #include "list.h" 23 24 24 25 using namespace std; … … 27 28 Campaign::Campaign () 28 29 { 29 this->entities = new ListTemplate<StoryEntity>();30 this->entities = new tList<StoryEntity>(); 30 31 this->isInit = false; 31 32 } … … 184 185 if( storyID == WORLD_ID_GAMEEND) 185 186 return NULL; 186 ListTemplate<StoryEntity>* l; 187 188 /* 189 tList<StoryEntity>* l; 187 190 StoryEntity* entity = NULL; 188 191 l = this->entities->getNext(); … … 191 194 entity = l->getObject(); 192 195 l = l->getNext(); 196 193 197 int id = entity->getStoryID(); 194 198 //printf("Campaing::getStoryEntity() - now looping, found entity nr=%i\n", id); … … 198 202 return entity; 199 203 } 200 } 204 205 } 206 */ 207 208 209 210 StoryEntity* entity = this->entities->enumerate(); 211 while( entity != NULL) 212 { 213 int id = entity->getStoryID(); 214 //printf("Campaing::getStoryEntity() - now looping, found entity nr=%i\n", id); 215 if(id == storyID) 216 { 217 //printf("Campaing::getStoryEntity() - yea, this is what we where looking for: %id\n"); 218 return entity; 219 } 220 entity = this->entities->nextElement(); 221 } 222 223 224 201 225 return NULL; 202 226 } -
orxonox/trunk/src/story_entities/campaign.h
r3544 r3608 8 8 9 9 class World; 10 template<class T> class tList; 10 11 11 12 class Campaign : public StoryEntity { … … 34 35 35 36 private: 36 ListTemplate<StoryEntity>* entities; 37 //ListTemplate<StoryEntity>* entities; 38 tList<StoryEntity>* entities; 37 39 bool running; 38 40 -
orxonox/trunk/src/story_entities/story_entity.h
r3472 r3608 8 8 #define _STORY_ENTITY_H 9 9 10 #include " stdincl.h"10 #include "base_object.h" 11 11 #include "story_def.h" 12 #include "error.h" 13 12 14 13 15 //! A class that represents something to play in orxonox. it is a container for worlds, movies, mission briefings, etc... -
orxonox/trunk/src/story_entities/world.cc
r3603 r3608 18 18 19 19 #include "world.h" 20 21 #include "orxonox.h" 22 #include "p_node.h" 23 #include "null_parent.h" 24 #include "helper_parent.h" 25 #include "track_node.h" 20 26 #include "world_entity.h" 21 27 #include "track_manager.h" 22 28 #include "player.h" 23 #include "command_node.h"24 29 #include "camera.h" 25 30 #include "environment.h" 26 31 #include "primitive.h" 27 #include "p_node.h" 28 #include "null_parent.h" 29 #include "helper_parent.h" 32 #include "skysphere.h" 33 #include "terrain.h" 34 #include "light.h" 35 #include "command_node.h" 30 36 #include "glmenu_imagescreen.h" 31 #include "skysphere.h"32 #include "light.h"33 37 #include "fontset.h" 34 #include "track_node.h" 35 #include "terrain.h" 38 #include "list.h" 39 40 36 41 37 42 using namespace std; -
orxonox/trunk/src/story_entities/world.h
r3597 r3608 8 8 9 9 #include "stdincl.h" 10 #include "comincl.h" 10 11 #include "story_entity.h" 11 12 #include "p_node.h"
Note: See TracChangeset
for help on using the changeset viewer.