Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3608 in orxonox.OLD for orxonox/trunk/src/story_entities


Ignore:
Timestamp:
Mar 20, 2005, 11:37:26 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: now there is a real speedup in compiling time when dependencies are modified: just realy only includes, what is needed. Byside the speedup, there is more overview! never add an orxonox class to stdincl.h if it doesn't have to be

Location:
orxonox/trunk/src/story_entities
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/campaign.cc

    r3472 r3608  
    2020#include "world.h"
    2121#include "camera.h"
    22 #include "story_entity.h"
     22//#include "story_entity.h"
     23#include "list.h"
    2324
    2425using namespace std;
     
    2728Campaign::Campaign ()
    2829{
    29   this->entities = new ListTemplate<StoryEntity>();
     30  this->entities = new tList<StoryEntity>();
    3031  this->isInit = false;
    3132}
     
    184185  if( storyID == WORLD_ID_GAMEEND)
    185186    return NULL;
    186   ListTemplate<StoryEntity>* l;
     187
     188  /*
     189  tList<StoryEntity>* l;
    187190  StoryEntity* entity = NULL;
    188191  l = this->entities->getNext(); 
     
    191194      entity = l->getObject();
    192195      l = l->getNext();
     196
    193197      int id = entity->getStoryID();
    194198      //printf("Campaing::getStoryEntity() - now looping, found entity nr=%i\n", id);
     
    198202          return entity;
    199203        }
    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
    201225  return NULL;
    202226}
  • orxonox/trunk/src/story_entities/campaign.h

    r3544 r3608  
    88
    99class World;
     10template<class T> class tList;
    1011
    1112class Campaign : public StoryEntity {
     
    3435
    3536 private:
    36   ListTemplate<StoryEntity>* entities;
     37  //ListTemplate<StoryEntity>* entities;
     38  tList<StoryEntity>* entities;
    3739  bool running;
    3840
  • orxonox/trunk/src/story_entities/story_entity.h

    r3472 r3608  
    88#define _STORY_ENTITY_H
    99
    10 #include "stdincl.h"
     10#include "base_object.h"
    1111#include "story_def.h"
     12#include "error.h"
     13
    1214
    1315//! 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  
    1818
    1919#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"
    2026#include "world_entity.h"
    2127#include "track_manager.h"
    2228#include "player.h"
    23 #include "command_node.h"
    2429#include "camera.h"
    2530#include "environment.h"
    2631#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"
    3036#include "glmenu_imagescreen.h"
    31 #include "skysphere.h"
    32 #include "light.h"
    3337#include "fontset.h"
    34 #include "track_node.h"
    35 #include "terrain.h"
     38#include "list.h"
     39
     40
    3641
    3742using namespace std;
  • orxonox/trunk/src/story_entities/world.h

    r3597 r3608  
    88
    99#include "stdincl.h"
     10#include "comincl.h"
    1011#include "story_entity.h"
    1112#include "p_node.h"
Note: See TracChangeset for help on using the changeset viewer.