Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7041 in orxonox.OLD


Ignore:
Timestamp:
Feb 6, 2006, 1:29:20 AM (18 years ago)
Author:
bensch
Message:

trunk: added new worldEntity Building

Location:
trunk/src
Files:
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/defs/class_id.h

    r7035 r7041  
    172172  CL_WATER                      =    0x00000308,
    173173  CL_PLANET                     =    0x00000309,
     174  CL_BUILDING                   =    0x00000310,
    174175
    175176  // Playables
    176   CL_SPACE_SHIP                 =    0x0000030a,
    177   CL_HELICOPTER                 =    0x0000030b,
    178   CL_SPAWNING_POINT             =    0x0000030c,
    179   CL_MD2_CREATURE               =    0x0000030d,
    180   CL_HOVER                      =    0x0000030e,
    181   CL_TURBINE_HOVER              =    0x0000030f,
     177  CL_SPACE_SHIP                 =    0x0000035a,
     178  CL_HELICOPTER                 =    0x0000035b,
     179  CL_SPAWNING_POINT             =    0x0000035c,
     180  CL_MD2_CREATURE               =    0x0000035d,
     181  CL_HOVER                      =    0x0000035e,
     182  CL_TURBINE_HOVER              =    0x0000035f,
    182183
    183184  // Powerups
    184   CL_TURRET_POWER_UP            =    0x00000311,
    185   CL_LASER_POWER_UP             =    0x00000312,
    186   CL_WEAPON_POWER_UP            =    0x00000313,
    187   CL_PARAM_POWER_UP             =    0x00000314,
     185  CL_TURRET_POWER_UP            =    0x00000381,
     186  CL_LASER_POWER_UP             =    0x00000382,
     187  CL_WEAPON_POWER_UP            =    0x00000383,
     188  CL_PARAM_POWER_UP             =    0x00000384,
    188189
    189190  // Weapons
    190   CL_TEST_GUN                   =    0x00000330,
    191   CL_TURRET                     =    0x00000331,
    192   CL_AIMING_TURRET              =    0x00000332,
    193   CL_CANNON                     =    0x00000333,
    194   CL_TARGETING_TURRET           =    0x00000334,
    195   CL_HYPERBLASTER               =    0x00000335,
     191  CL_TEST_GUN                   =    0x000003a0,
     192  CL_TURRET                     =    0x000003a1,
     193  CL_AIMING_TURRET              =    0x000003a2,
     194  CL_CANNON                     =    0x000003a3,
     195  CL_TARGETING_TURRET           =    0x000003a4,
     196  CL_HYPERBLASTER               =    0x000003a5,
    196197
    197198  // Projectiles
    198   CL_TEST_BULLET                =    0x00000340,
    199   CL_ROCKET                     =    0x00000341,
    200   CL_LASER                      =    0x00000342,
    201   CL_BOMB                       =    0x00000343,
    202   CL_GROUND_TURRET              =    0x00000344,
    203   CL_GUIDED_MISSILE             =    0x00000345,
    204   CL_HYPERBLAST                 =    0x00000346,
     199  CL_TEST_BULLET                =    0x000003e0,
     200  CL_ROCKET                     =    0x000003e1,
     201  CL_LASER                      =    0x000003e2,
     202  CL_BOMB                       =    0x000003e3,
     203  CL_GROUND_TURRET              =    0x000003e4,
     204  CL_GUIDED_MISSILE             =    0x000003e5,
     205  CL_HYPERBLAST                 =    0x000003e6,
    205206
    206207  // NPC's
  • trunk/src/world_entities/Makefile.am

    r7028 r7041  
    6262                  world_entities/environments/water.cc \
    6363                  world_entities/environments/model_entity.cc \
     64                  world_entities/environments/building.cc \
    6465                  \
    6566                  world_entities/elements/image_entity.cc \
     
    124125                 world_entities/environments/water.h \
    125126                 world_entities/environments/model_entity.h \
     127                 world_entities/environments/building.h \
    126128                 \
    127129                 world_entities/elements/image_entity.h \
  • trunk/src/world_entities/environments/building.cc

    r7040 r7041  
    1616#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
    1717
    18 #include "model_entity.h"
     18#include "building.h"
    1919
    2020#include "load_param.h"
     
    2424
    2525
    26 CREATE_FACTORY(ModelEntity, CL_MODEL_ENTITY);
     26CREATE_FACTORY(Building, CL_BUILDING);
    2727
    2828/**
    2929 *  initializes a skybox from a XmlElement
    3030*/
    31 ModelEntity::ModelEntity(const TiXmlElement* root)
     31Building::Building(const TiXmlElement* root)
    3232{
    33   this->setClassID(CL_MODEL_ENTITY, "ModelEntity");
     33  this->setClassID(CL_BUILDING, "Building");
    3434  this->toList(OM_ENVIRON_NOTICK);
    3535
     
    4242 *  default destructor
    4343*/
    44 ModelEntity::~ModelEntity()
     44Building::~Building()
    4545{
    4646}
  • trunk/src/world_entities/environments/building.h

    r7040 r7041  
    11/*!
    2  * @file model_entity.h
    3  *  Definition of the ModelEntity, that handles the Display of an atmosphere for orxonox.
     2 * @file building.h
     3 *  Definition of the Building, that handles the Display of an atmosphere for orxonox.
    44 */
    55
    6 #ifndef _MODEL_ENTITY_H
    7 #define _MODEL_ENTITY_H
     6#ifndef _BUILDING_H
     7#define _BUILDING_H
    88
    99/* INCLUDES */
     
    1212/* FORWARD DECLARATION */
    1313
    14 //! A Class to handle a ModelEntity
    15 class ModelEntity : public WorldEntity
     14//! A Class to handle a Building
     15class Building : public WorldEntity
    1616{
    1717 public:
    18   ModelEntity(const TiXmlElement* root);
     18  Building(const TiXmlElement* root);
    1919
    20   virtual ~ModelEntity();
     20  virtual ~Building();
    2121
    2222};
    2323
    24 #endif  /* _MODEL_ENTITY_H */
     24#endif  /* _BUILDING_H */
    2525
    2626
Note: See TracChangeset for help on using the changeset viewer.