Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3608 in orxonox.OLD for orxonox


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
Files:
1 added
30 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/Makefile.am

    r3607 r3608  
    9898                 defs/stdincl.h \
    9999                 defs/glincl.h \
     100                 defs/comincl.h \
    100101                 defs/error.h \
    101102                 defs/debug.h \
  • orxonox/trunk/src/Makefile.in

    r3607 r3608  
    299299                 defs/stdincl.h \
    300300                 defs/glincl.h \
     301                 defs/comincl.h \
    301302                 defs/error.h \
    302303                 defs/debug.h \
  • orxonox/trunk/src/camera.cc

    r3607 r3608  
    1717
    1818#include "camera.h"
     19
    1920#include "world.h"
    2021#include "world_entity.h"
     22#include "vector.h"
    2123
    2224using namespace std;
  • orxonox/trunk/src/camera.h

    r3551 r3608  
    3838  float deltaTime;
    3939  float t;
    40   Vector r;
     40  Vector* r;
    4141  float rAbs;
    4242  float ka;
  • orxonox/trunk/src/command_node.cc

    r3591 r3608  
    2222#include "game_loader.h"
    2323#include "world.h"
     24#include "list.h"
     25#include "orxonox.h"
    2426
    2527#include <stdio.h>
  • orxonox/trunk/src/command_node.h

    r3236 r3608  
    99#define _COMMAND_NODE_H
    1010
    11 #include "stdincl.h"
    1211
     12#include "comincl.h"
     13
     14template<class T> class tList;
    1315class WorldEntity;
    1416class World;
  • orxonox/trunk/src/defs/stdincl.h

    r3607 r3608  
    88#ifndef _STDINCL_H
    99#define _STDINCL_H
    10 
    11 #define null 0   //!< null
    12 
    1310
    1411typedef unsigned char byte;
     
    2926#include "glincl.h"
    3027
    31 
    32 // MATH //
    33 #include "vector.h"
    34 
    35 #include "list.h"
    36 #include "list_template.h"
    37 #include "message_structures.h"
    38 #include "orxonox.h"
    39 #include "data_tank.h"
    40 #include "base_object.h"
    41 
    4228#include "error.h"
    4329#include "debug.h"
  • orxonox/trunk/src/game_loader.h

    r3225 r3608  
    22#define _GAME_LOADER_H
    33
    4 #include "stdincl.h"
     4//#include "stdincl.h"
    55#include "story_def.h"
     6#include "comincl.h"
    67
    78//-----------------------------------------------------------------------------
     
    1213class Camera;
    1314class CammandNode;
    14 
    1515
    1616class GameLoader
  • orxonox/trunk/src/lib/coord/null_parent.cc

    r3607 r3608  
    2020#include "null_parent.h"
    2121#include "stdincl.h"
     22#include "vector.h"
     23#include "list.h"
    2224
    2325
  • orxonox/trunk/src/lib/coord/p_node.cc

    r3607 r3608  
    2323#include "stdincl.h"
    2424
     25#include "error.h"
     26#include "debug.h"
     27#include "list.h"
     28#include "vector.h"
    2529#include "null_parent.h"
     30
     31
    2632//#include "vector.h"
    2733//#include "quaternion.h"
     
    479485      if( this->bRelDirChanged || this->bAbsDirChanged)
    480486        pn->parentDirChanged ();
     487
    481488      pn->update();
    482489      pn = this->children->nextElement();
  • orxonox/trunk/src/lib/coord/p_node.h

    r3607 r3608  
    2323
    2424#include "base_object.h"
    25 #include "vector.h"
     25//#include "vector.h"
    2626
    2727// FORWARD DEFINITION \\
  • orxonox/trunk/src/lib/graphics/light.cc

    r3603 r3608  
    2121
    2222#include "glincl.h"
     23#include "vector.h"
    2324
    2425using namespace std;
  • orxonox/trunk/src/message_structures.h

    r3224 r3608  
    66#ifndef _MESSAGE_STRUCTURES_H
    77#define _MESSAGE_STRUCTURES_H
     8
     9#include "stdincl.h"
    810
    911#define CMD_LENGHT 16
  • orxonox/trunk/src/orxonox.h

    r3544 r3608  
    77#define _ORXONOX_H
    88
    9 #include "stdincl.h"
     9#include "comincl.h"
     10#include "glincl.h"
    1011
    1112class CommandNode;
  • 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"
  • orxonox/trunk/src/track_manager.cc

    r3601 r3608  
    1818#include "track_manager.h"
    1919
     20#include "base_object.h"
    2021#include "p_node.h"
    21 
    2222#include "track_node.h"
     23#include "stdincl.h"
     24#include "list.h"
     25
     26
    2327
    2428#include <stdarg.h>
  • orxonox/trunk/src/track_manager.h

    r3596 r3608  
    1212#define _TRACK_MANAGER_H
    1313
    14 #include "stdincl.h"
    1514#include "curve.h"
     15#include "base_object.h"
    1616
    1717class PNode;
     18template<class T> class tList;
    1819
    1920// Static Definitions
  • orxonox/trunk/src/world_entities/player.cc

    r3596 r3608  
    4040
    4141  travelSpeed = 15.0;
    42   velocity = Vector();
     42  velocity = new Vector();
    4343  bUp = bDown = bLeft = bRight = bAscend = bDescend = false;
    4444  bFire = false;
  • orxonox/trunk/src/world_entities/player.h

    r3585 r3608  
    1212class OBJModel;
    1313class Weapon;
     14class Vector;
    1415
    1516//! Basic controllable WorldEntity
     
    4849  Weapon* activeWeapon;  //!< the weapon that is currenty activated
    4950
    50   Vector velocity;       //!< the velocity of the player.
     51  Vector* velocity;       //!< the velocity of the player.
    5152  float travelSpeed;     //!< the current speed of the player (to make soft movement)
    5253  float acceleration;    //!< the acceleration of the player.
  • orxonox/trunk/src/world_entities/primitive.cc

    r3607 r3608  
    1818
    1919#include "primitive.h"
     20
    2021#include "stdincl.h"
    2122#include "world_entity.h"
    2223#include "objModel.h"
     24#include "vector.h"
    2325
    2426using namespace std;
  • orxonox/trunk/src/world_entities/primitive.h

    r3586 r3608  
    33
    44#include "world_entity.h"
     5#include "glincl.h"
    56
    67typedef enum PRIMITIVE_FORM {PSPHERE = 0, PCUBE, PSQUARE};
     8
     9class Material;
     10
    711
    812class Primitive : public WorldEntity
  • orxonox/trunk/src/world_entities/skysphere.cc

    r3607 r3608  
    2626#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
    2727
    28 #include "material.h"
     28
    2929#include "skysphere.h"
    3030#include "stdincl.h"
     31
     32#include "material.h"
    3133#include "vector.h"
    32 #include "world_entity.h"
     34//#include "world_entity.h"
     35
    3336
    3437using namespace std;
  • orxonox/trunk/src/world_entities/skysphere.h

    r3531 r3608  
    1414
    1515/* INCLUDES */
    16 #include "p_node.h"
    1716#include "world_entity.h"
    1817
  • orxonox/trunk/src/world_entities/terrain.cc

    r3566 r3608  
    1616
    1717#include "terrain.h"
    18 
     18#include "stdincl.h"
     19#include "objModel.h"
     20#include "vector.h"
    1921#include "glincl.h"
    2022
  • orxonox/trunk/src/world_entities/world_entity.cc

    r3583 r3608  
    1919
    2020#include "world_entity.h"
    21 #include "stdincl.h"
     21#include "objModel.h"
     22#include "list.h"
     23
     24//#include "stdincl.h"
    2225//#include "collision.h"
    2326
  • orxonox/trunk/src/world_entities/world_entity.h

    r3583 r3608  
    77#define _WORLD_ENTITY_H
    88
    9 #include "stdincl.h"
    109#include "p_node.h"
    11 #include "objModel.h"
     10#include "comincl.h"
    1211
    1312//class CollisionCluster;
    1413class CharacterAttributes;
     14class OBJModel;
    1515
    1616
Note: See TracChangeset for help on using the changeset viewer.