Changeset 9715 in orxonox.OLD for branches/new_class_id/src/world_entities
- Timestamp:
- Sep 1, 2006, 8:06:39 PM (18 years ago)
- Location:
- branches/new_class_id/src/world_entities
- Files:
-
- 156 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/bsp_entity.cc
r9709 r9715 19 19 20 20 #include "class_id.h" 21 NewObjectListDefinitionID(BspEntity, CL_BSP_ENTITY);21 ObjectListDefinitionID(BspEntity, CL_BSP_ENTITY); 22 22 CREATE_FACTORY(BspEntity); 23 23 -
branches/new_class_id/src/world_entities/bsp_entity.h
r9687 r9715 18 18 class BspEntity : public WorldEntity 19 19 { 20 NewObjectListDeclaration(BspEntity);20 ObjectListDeclaration(BspEntity); 21 21 public: 22 22 BspEntity(const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/camera.cc
r9705 r9715 19 19 #include "glincl.h" 20 20 21 NewObjectListDefinition(Camera);21 ObjectListDefinition(Camera); 22 22 23 23 /** … … 223 223 /////////////////// 224 224 225 NewObjectListDefinition(CameraTarget);225 ObjectListDefinition(CameraTarget); 226 226 CameraTarget::CameraTarget() 227 227 { -
branches/new_class_id/src/world_entities/camera.h
r9705 r9715 22 22 class Camera : public PNode, public EventListener 23 23 { 24 NewObjectListDeclaration(Camera);24 ObjectListDeclaration(Camera); 25 25 public: 26 26 //! an enumerator for different types of view … … 85 85 { 86 86 friend class Camera; //! The CameraTarget is a friend of Camera. noone else needs a CameraTarget, so noone else can create it. 87 NewObjectListDeclaration(CameraTarget);87 ObjectListDeclaration(CameraTarget); 88 88 89 89 private: -
branches/new_class_id/src/world_entities/character_attributes.cc
r9709 r9715 20 20 21 21 22 NewObjectListDefinition(CharacterAttributes);22 ObjectListDefinition(CharacterAttributes); 23 23 24 24 -
branches/new_class_id/src/world_entities/character_attributes.h
r9709 r9715 15 15 */ 16 16 class CharacterAttributes : public BaseObject { 17 NewObjectListDeclaration(CharacterAttributes);17 ObjectListDeclaration(CharacterAttributes); 18 18 19 19 public: -
branches/new_class_id/src/world_entities/creatures/fps_player.cc
r9709 r9715 42 42 43 43 #include "class_id.h" 44 NewObjectListDefinitionID(FPSPlayer, CL_FPS_PLAYER);44 ObjectListDefinitionID(FPSPlayer, CL_FPS_PLAYER); 45 45 CREATE_FACTORY(FPSPlayer); 46 46 -
branches/new_class_id/src/world_entities/creatures/fps_player.h
r9709 r9715 16 16 class FPSPlayer : public Playable 17 17 { 18 NewObjectListDeclaration(FPSPlayer);18 ObjectListDeclaration(FPSPlayer); 19 19 20 20 public: -
branches/new_class_id/src/world_entities/creatures/md2_creature.cc
r9709 r9715 38 38 39 39 #include "class_id.h" 40 NewObjectListDefinitionID(MD2Creature, CL_MD2_CREATURE);40 ObjectListDefinitionID(MD2Creature, CL_MD2_CREATURE); 41 41 CREATE_FACTORY(MD2Creature); 42 42 -
branches/new_class_id/src/world_entities/creatures/md2_creature.h
r9709 r9715 16 16 class MD2Creature : public Playable 17 17 { 18 NewObjectListDeclaration(MD2Creature);18 ObjectListDeclaration(MD2Creature); 19 19 20 20 public: -
branches/new_class_id/src/world_entities/effects/billboard.cc
r9709 r9715 27 27 28 28 #include "class_id.h" 29 NewObjectListDefinitionID(Billboard, CL_BILLBOARD);29 ObjectListDefinitionID(Billboard, CL_BILLBOARD); 30 30 CREATE_FACTORY(Billboard); 31 31 -
branches/new_class_id/src/world_entities/effects/billboard.h
r9707 r9715 13 13 class Billboard : public WorldEntity 14 14 { 15 NewObjectListDeclaration(Billboard);15 ObjectListDeclaration(Billboard); 16 16 public: 17 17 Billboard(const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/effects/explosion.cc
r9709 r9715 28 28 29 29 #include "class_id.h" 30 NewObjectListDefinitionID(Explosion, CL_EXPLOSION);30 ObjectListDefinitionID(Explosion, CL_EXPLOSION); 31 31 CREATE_FAST_FACTORY_STATIC(Explosion); 32 32 -
branches/new_class_id/src/world_entities/effects/explosion.h
r9707 r9715 15 15 class Explosion : public WorldEntity 16 16 { 17 NewObjectListDeclaration(Explosion);17 ObjectListDeclaration(Explosion); 18 18 public: 19 19 static void explode (PNode* position, const Vector& size); -
branches/new_class_id/src/world_entities/effects/lightning_bolt.cc
r9709 r9715 26 26 27 27 #include "class_id.h" 28 NewObjectListDefinitionID(LightningBolt, CL_LIGHTNING_BOLT);28 ObjectListDefinitionID(LightningBolt, CL_LIGHTNING_BOLT); 29 29 CREATE_FACTORY(LightningBolt); 30 30 -
branches/new_class_id/src/world_entities/effects/lightning_bolt.h
r9709 r9715 2 2 * @file lightning_bolt.h 3 3 * @brief a LightningBolt Projectile 4 * Der Effekt soll folgenderma ßen funktionieren:4 * Der Effekt soll folgenderma�n funktionieren: 5 5 * -> Ein Partikel mit einer Blitz-Textur soll sehr schnell erscheinen, 6 * -> w ährend er an Intensitätzunimmt soll die Beleuchtung der gerenderten Szene entsprechend zunehmen.7 * -> Je mehr Blitze zum gleichen Zeitpunkt sichtbar sind, desto heller soll die Beleuchtung werden, das hei ßtdie Helligkeitszunahme pro Blitz soll Additiv sein.6 * -> w�rend er an Intensit� zunimmt soll die Beleuchtung der gerenderten Szene entsprechend zunehmen. 7 * -> Je mehr Blitze zum gleichen Zeitpunkt sichtbar sind, desto heller soll die Beleuchtung werden, das hei� die Helligkeitszunahme pro Blitz soll Additiv sein. 8 8 * -> Ein Partikel soll ebenfalls sehr schnell wieder verblassen, dabei soll die Beleuchtung entsprechend der vorhergehenden Zunahme wieder abnehmen (Additiv) 9 9 */ … … 21 21 class LightningBolt : public WorldEntity 22 22 { 23 NewObjectListDeclaration(LightningBolt);23 ObjectListDeclaration(LightningBolt); 24 24 public: 25 25 LightningBolt(const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/elements/image_entity.cc
r9709 r9715 31 31 32 32 #include "class_id.h" 33 NewObjectListDefinitionID(ImageEntity, CL_IMAGE_ENTITY);33 ObjectListDefinitionID(ImageEntity, CL_IMAGE_ENTITY); 34 34 CREATE_FACTORY(ImageEntity); 35 35 -
branches/new_class_id/src/world_entities/elements/image_entity.h
r9709 r9715 21 21 //! A class that enables the 22 22 class ImageEntity : public PNode, public Element2D { 23 NewObjectListDeclaration(ImageEntity);23 ObjectListDeclaration(ImageEntity); 24 24 25 25 public: -
branches/new_class_id/src/world_entities/elements/text_element.cc
r9709 r9715 28 28 29 29 #include "class_id.h" 30 NewObjectListDefinitionID(TextElement, CL_TEXT_ELEMENT);30 ObjectListDefinitionID(TextElement, CL_TEXT_ELEMENT); 31 31 CREATE_FACTORY(TextElement); 32 32 -
branches/new_class_id/src/world_entities/elements/text_element.h
r9709 r9715 21 21 //! A class that enables the 22 22 class TextElement : public Text { 23 NewObjectListDeclaration(TextElement);23 ObjectListDeclaration(TextElement); 24 24 25 25 public: -
branches/new_class_id/src/world_entities/environment.cc
r9709 r9715 27 27 28 28 #include "class_id.h" 29 NewObjectListDefinitionID(Environment, CL_ENVIRONMENT);29 ObjectListDefinitionID(Environment, CL_ENVIRONMENT); 30 30 CREATE_FACTORY(Environment); 31 31 -
branches/new_class_id/src/world_entities/environment.h
r9709 r9715 16 16 class Environment : public WorldEntity 17 17 { 18 NewObjectListDeclaration(Environment);18 ObjectListDeclaration(Environment); 19 19 20 20 public: -
branches/new_class_id/src/world_entities/environments/building.cc
r9709 r9715 24 24 25 25 #include "class_id.h" 26 NewObjectListDefinitionID(Building, CL_BUILDING);26 ObjectListDefinitionID(Building, CL_BUILDING); 27 27 CREATE_FACTORY(Building); 28 28 -
branches/new_class_id/src/world_entities/environments/building.h
r9709 r9715 15 15 class Building : public WorldEntity 16 16 { 17 NewObjectListDeclaration(Building);17 ObjectListDeclaration(Building); 18 18 public: 19 19 Building(const TiXmlElement* root); -
branches/new_class_id/src/world_entities/environments/mapped_water.cc
r9709 r9715 26 26 27 27 #include "class_id.h" 28 NewObjectListDefinitionID(MappedWater, CL_MAPPED_WATER);28 ObjectListDefinitionID(MappedWater, CL_MAPPED_WATER); 29 29 CREATE_FACTORY(MappedWater); 30 30 -
branches/new_class_id/src/world_entities/environments/mapped_water.h
r9709 r9715 35 35 class MappedWater : public WorldEntity 36 36 { 37 NewObjectListDeclaration(MappedWater);37 ObjectListDeclaration(MappedWater); 38 38 public: 39 39 MappedWater(const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/environments/model_entity.cc
r9709 r9715 24 24 25 25 #include "class_id.h" 26 NewObjectListDefinitionID(ModelEntity, CL_MODEL_ENTITY);26 ObjectListDefinitionID(ModelEntity, CL_MODEL_ENTITY); 27 27 CREATE_FACTORY(ModelEntity); 28 28 -
branches/new_class_id/src/world_entities/environments/model_entity.h
r9709 r9715 15 15 class ModelEntity : public WorldEntity 16 16 { 17 NewObjectListDeclaration(ModelEntity);17 ObjectListDeclaration(ModelEntity); 18 18 public: 19 19 ModelEntity(const TiXmlElement* root); -
branches/new_class_id/src/world_entities/environments/water.cc
r9709 r9715 34 34 35 35 #include "class_id.h" 36 NewObjectListDefinitionID(Water, CL_WATER);36 ObjectListDefinitionID(Water, CL_WATER); 37 37 CREATE_FACTORY(Water); 38 38 -
branches/new_class_id/src/world_entities/environments/water.h
r9709 r9715 22 22 class Water : public WorldEntity 23 23 { 24 NewObjectListDeclaration(Water);24 ObjectListDeclaration(Water); 25 25 public: 26 26 Water(const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/extendable.cc
r9685 r9715 1 1 #include "extendable.h" 2 2 3 NewObjectListDefinition(Extendable);3 ObjectListDefinition(Extendable); -
branches/new_class_id/src/world_entities/extendable.h
r9685 r9715 16 16 //! A class for Extendable Entities 17 17 class Extendable : virtual public BaseObject { 18 NewObjectListDeclaration(Extendable);18 ObjectListDeclaration(Extendable); 19 19 20 20 public: -
branches/new_class_id/src/world_entities/movie_entity.cc
r9709 r9715 22 22 23 23 #include "class_id.h" 24 NewObjectListDefinitionID(MovieEntity, CL_MOVIE_ENTITY);24 ObjectListDefinitionID(MovieEntity, CL_MOVIE_ENTITY); 25 25 CREATE_FACTORY(MovieEntity); 26 26 -
branches/new_class_id/src/world_entities/movie_entity.h
r9709 r9715 14 14 class MovieEntity : public WorldEntity 15 15 { 16 NewObjectListDeclaration(MovieEntity);16 ObjectListDeclaration(MovieEntity); 17 17 private: 18 18 MediaContainer* media_container; -
branches/new_class_id/src/world_entities/npcs/attractor_mine.cc
r9709 r9715 34 34 35 35 #include "class_id.h" 36 NewObjectListDefinitionID(AttractorMine, CL_ATTRACTOR_MINE);36 ObjectListDefinitionID(AttractorMine, CL_ATTRACTOR_MINE); 37 37 CREATE_FACTORY(AttractorMine); 38 38 #include "script_class.h" -
branches/new_class_id/src/world_entities/npcs/attractor_mine.h
r9709 r9715 9 9 10 10 class AttractorMine : public NPC { 11 NewObjectListDeclaration(AttractorMine);11 ObjectListDeclaration(AttractorMine); 12 12 13 13 public: -
branches/new_class_id/src/world_entities/npcs/door.cc
r9709 r9715 27 27 28 28 #include "class_id.h" 29 NewObjectListDefinitionID(Door, CL_DOOR);29 ObjectListDefinitionID(Door, CL_DOOR); 30 30 CREATE_FACTORY(Door); 31 31 … … 159 159 float distance; 160 160 161 for ( NewObjectList<Playable>::const_iterator it = Playable::objectList().begin();161 for (ObjectList<Playable>::const_iterator it = Playable::objectList().begin(); 162 162 it != Playable::objectList().end(); 163 163 ++it) … … 173 173 174 174 175 for ( NewObjectList<GenericNPC>::const_iterator it = GenericNPC::objectList().begin();175 for (ObjectList<GenericNPC>::const_iterator it = GenericNPC::objectList().begin(); 176 176 it != GenericNPC::objectList().end(); 177 177 ++it) -
branches/new_class_id/src/world_entities/npcs/door.h
r9709 r9715 21 21 class Door : public WorldEntity 22 22 { 23 NewObjectListDeclaration(Door);23 ObjectListDeclaration(Door); 24 24 25 25 public: -
branches/new_class_id/src/world_entities/npcs/gate.cc
r9709 r9715 32 32 33 33 #include "class_id.h" 34 NewObjectListDefinitionID(Gate, CL_GATE);34 ObjectListDefinitionID(Gate, CL_GATE); 35 35 CREATE_FACTORY(Gate); 36 36 … … 200 200 201 201 // for all players 202 for ( NewObjectList<Playable>::const_iterator it = Playable::objectList().begin();202 for (ObjectList<Playable>::const_iterator it = Playable::objectList().begin(); 203 203 it != Playable::objectList().end(); 204 204 ++it) … … 212 212 213 213 214 for ( NewObjectList<GenericNPC>::const_iterator it = GenericNPC::objectList().begin();214 for (ObjectList<GenericNPC>::const_iterator it = GenericNPC::objectList().begin(); 215 215 it != GenericNPC::objectList().end(); 216 216 ++it) -
branches/new_class_id/src/world_entities/npcs/gate.h
r9709 r9715 22 22 class Gate : public WorldEntity 23 23 { 24 NewObjectListDeclaration(Gate);24 ObjectListDeclaration(Gate); 25 25 26 26 public: -
branches/new_class_id/src/world_entities/npcs/generic_npc.cc
r9709 r9715 33 33 34 34 #include "class_id.h" 35 NewObjectListDefinitionID(GenericNPC, CL_GENERIC_NPC);35 ObjectListDefinitionID(GenericNPC, CL_GENERIC_NPC); 36 36 CREATE_FACTORY(GenericNPC); 37 37 -
branches/new_class_id/src/world_entities/npcs/generic_npc.h
r9709 r9715 25 25 class GenericNPC : public NPC 26 26 { 27 NewObjectListDeclaration(GenericNPC);27 ObjectListDeclaration(GenericNPC); 28 28 29 29 -
branches/new_class_id/src/world_entities/npcs/ground_turret.cc
r9709 r9715 31 31 #include "class_id.h" 32 32 33 NewObjectListDefinitionID(GroundTurret, CL_GROUND_TURRET);33 ObjectListDefinitionID(GroundTurret, CL_GROUND_TURRET); 34 34 CREATE_FACTORY(GroundTurret); 35 35 -
branches/new_class_id/src/world_entities/npcs/ground_turret.h
r9709 r9715 14 14 class GroundTurret : public NPC 15 15 { 16 NewObjectListDeclaration(GroundTurret);16 ObjectListDeclaration(GroundTurret); 17 17 18 18 public: -
branches/new_class_id/src/world_entities/npcs/network_turret.cc
r9709 r9715 32 32 33 33 #include "class_id.h" 34 NewObjectListDefinitionID(NetworkTurret, CL_NETWORK_TURRET);34 ObjectListDefinitionID(NetworkTurret, CL_NETWORK_TURRET); 35 35 CREATE_FACTORY(NetworkTurret); 36 36 -
branches/new_class_id/src/world_entities/npcs/network_turret.h
r9709 r9715 14 14 class NetworkTurret : public NPC 15 15 { 16 NewObjectListDeclaration(NetworkTurret);16 ObjectListDeclaration(NetworkTurret); 17 17 public: 18 18 NetworkTurret(const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/npcs/npc.cc
r9705 r9715 20 20 #include "npc.h" 21 21 22 NewObjectListDefinition(NPC);22 ObjectListDefinition(NPC); 23 23 24 24 NPC::NPC(const TiXmlElement* root) -
branches/new_class_id/src/world_entities/npcs/npc.h
r9705 r9715 8 8 9 9 class NPC : public WorldEntity { 10 NewObjectListDeclaration(NPC);10 ObjectListDeclaration(NPC); 11 11 public: 12 12 NPC (const TiXmlElement* root); -
branches/new_class_id/src/world_entities/npcs/npc_test.cc
r9709 r9715 31 31 32 32 #include "class_id.h" 33 NewObjectListDefinitionID(NPC2, CL_NPC_TEST2);33 ObjectListDefinitionID(NPC2, CL_NPC_TEST2); 34 34 CREATE_FACTORY(NPC2); 35 35 -
branches/new_class_id/src/world_entities/npcs/npc_test.h
r9707 r9715 9 9 10 10 class NPC2 : public NPC { 11 NewObjectListDeclaration(NPC2);11 ObjectListDeclaration(NPC2); 12 12 13 13 public: -
branches/new_class_id/src/world_entities/npcs/npc_test1.cc
r9705 r9715 25 25 #include "power_ups/laser_power_up.h" 26 26 27 NewObjectListDefinition(NPCTest1);27 ObjectListDefinition(NPCTest1); 28 28 29 29 NPCTest1::NPCTest1() -
branches/new_class_id/src/world_entities/npcs/npc_test1.h
r9705 r9715 8 8 9 9 class NPCTest1 : public NPC { 10 NewObjectListDeclaration(NPCTest1);10 ObjectListDeclaration(NPCTest1); 11 11 public: 12 12 NPCTest1 (); -
branches/new_class_id/src/world_entities/npcs/repair_station.cc
r9709 r9715 27 27 28 28 #include "class_id.h" 29 NewObjectListDefinitionID(RepairStation, CL_DOOR +1 );29 ObjectListDefinitionID(RepairStation, CL_DOOR +1 ); 30 30 CREATE_FACTORY(RepairStation); 31 31 -
branches/new_class_id/src/world_entities/npcs/repair_station.h
r9709 r9715 27 27 class RepairStation : public WorldEntity 28 28 { 29 NewObjectListDeclaration(RepairStation);29 ObjectListDeclaration(RepairStation); 30 30 public: 31 31 RepairStation (); -
branches/new_class_id/src/world_entities/npcs/space_turret.cc
r9712 r9715 30 30 31 31 #include "class_id.h" 32 NewObjectListDefinitionID(SpaceTurret, CL_SPACE_TURRET);32 ObjectListDefinitionID(SpaceTurret, CL_SPACE_TURRET); 33 33 CREATE_FACTORY(SpaceTurret); 34 34 -
branches/new_class_id/src/world_entities/npcs/space_turret.h
r9709 r9715 18 18 class SpaceTurret : public NPC 19 19 { 20 NewObjectListDeclaration(SpaceTurret);20 ObjectListDeclaration(SpaceTurret); 21 21 22 22 public: -
branches/new_class_id/src/world_entities/planet.cc
r9709 r9715 33 33 34 34 #include "class_id.h" 35 NewObjectListDefinitionID(Planet, CL_PLANET);35 ObjectListDefinitionID(Planet, CL_PLANET); 36 36 CREATE_FACTORY(Planet); 37 37 -
branches/new_class_id/src/world_entities/planet.h
r9709 r9715 16 16 class Planet : public WorldEntity 17 17 { 18 NewObjectListDeclaration(Planet);18 ObjectListDeclaration(Planet); 19 19 20 20 public: -
branches/new_class_id/src/world_entities/playable.cc
r9705 r9715 41 41 SHELL_COMMAND_STATIC(orxoWeapon, Playable, Playable::addSomeWeapons_CHEAT) 42 42 ->setAlias("orxoWeapon"); 43 NewObjectListDefinition(Playable);43 ObjectListDefinition(Playable); 44 44 45 45 Playable::Playable() -
branches/new_class_id/src/world_entities/playable.h
r9691 r9715 27 27 class Playable : public WorldEntity, public Extendable 28 28 { 29 NewObjectListDeclaration(Playable);29 ObjectListDeclaration(Playable); 30 30 public: 31 31 //! Defines the Playmode of an Entity. -
branches/new_class_id/src/world_entities/player.cc
r9705 r9715 24 24 #include "debug.h" 25 25 26 NewObjectListDefinition(Player);26 ObjectListDefinition(Player); 27 27 /** 28 28 * creates a new Player … … 101 101 { 102 102 /// FIXME this should be in the ObjectManager 103 for ( NewObjectList<Playable>::const_iterator node = Playable::objectList().begin();103 for (ObjectList<Playable>::const_iterator node = Playable::objectList().begin(); 104 104 node != Playable::objectList().end(); 105 105 ++node) -
branches/new_class_id/src/world_entities/player.h
r9705 r9715 23 23 class Player : public EventListener 24 24 { 25 NewObjectListDeclaration(Player);25 ObjectListDeclaration(Player); 26 26 27 27 public: -
branches/new_class_id/src/world_entities/power_ups/laser_power_up.cc
r9709 r9715 25 25 26 26 #include "class_id.h" 27 NewObjectListDefinitionID(LaserPowerUp, CL_LASER_POWER_UP);27 ObjectListDefinitionID(LaserPowerUp, CL_LASER_POWER_UP); 28 28 CREATE_FACTORY(LaserPowerUp); 29 29 -
branches/new_class_id/src/world_entities/power_ups/laser_power_up.h
r9709 r9715 13 13 14 14 class LaserPowerUp : public PowerUp { 15 NewObjectListDeclaration(LaserPowerUp);15 ObjectListDeclaration(LaserPowerUp); 16 16 17 17 public: -
branches/new_class_id/src/world_entities/power_ups/param_power_up.cc
r9709 r9715 28 28 29 29 #include "class_id.h" 30 NewObjectListDefinitionID(ParamPowerUp, CL_PARAM_POWER_UP);30 ObjectListDefinitionID(ParamPowerUp, CL_PARAM_POWER_UP); 31 31 CREATE_FACTORY(ParamPowerUp); 32 32 -
branches/new_class_id/src/world_entities/power_ups/param_power_up.h
r9705 r9715 20 20 21 21 class ParamPowerUp : public PowerUp { 22 NewObjectListDeclaration(ParamPowerUp);22 ObjectListDeclaration(ParamPowerUp); 23 23 24 24 public: -
branches/new_class_id/src/world_entities/power_ups/power_up.cc
r9705 r9715 25 25 26 26 27 NewObjectListDefinition(PowerUp);27 ObjectListDefinition(PowerUp); 28 28 29 29 PowerUp::PowerUp(float r, float g, float b) -
branches/new_class_id/src/world_entities/power_ups/power_up.h
r9705 r9715 21 21 22 22 class PowerUp : public WorldEntity { 23 NewObjectListDeclaration(PowerUp);23 ObjectListDeclaration(PowerUp); 24 24 25 25 public: -
branches/new_class_id/src/world_entities/power_ups/turret_power_up.cc
r9709 r9715 25 25 26 26 #include "class_id.h" 27 NewObjectListDefinitionID(TurretPowerUp, CL_TURRET_POWER_UP);27 ObjectListDefinitionID(TurretPowerUp, CL_TURRET_POWER_UP); 28 28 CREATE_FACTORY(TurretPowerUp); 29 29 -
branches/new_class_id/src/world_entities/power_ups/turret_power_up.h
r9709 r9715 13 13 14 14 class TurretPowerUp : public PowerUp { 15 NewObjectListDeclaration(TurretPowerUp);15 ObjectListDeclaration(TurretPowerUp); 16 16 17 17 public: -
branches/new_class_id/src/world_entities/power_ups/weapon_power_up.cc
r9709 r9715 28 28 29 29 #include "class_id.h" 30 NewObjectListDefinitionID(WeaponPowerUp, CL_WEAPON_POWER_UP);30 ObjectListDefinitionID(WeaponPowerUp, CL_WEAPON_POWER_UP); 31 31 CREATE_FACTORY(WeaponPowerUp); 32 32 -
branches/new_class_id/src/world_entities/power_ups/weapon_power_up.h
r9705 r9715 14 14 15 15 class WeaponPowerUp : public PowerUp { 16 NewObjectListDeclaration(WeaponPowerUp);16 ObjectListDeclaration(WeaponPowerUp); 17 17 public: 18 18 WeaponPowerUp(const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/projectiles/bomb.cc
r9709 r9715 26 26 27 27 #include "class_id.h" 28 NewObjectListDefinitionID(Bomb, CL_BOMB);28 ObjectListDefinitionID(Bomb, CL_BOMB); 29 29 CREATE_FAST_FACTORY_STATIC(Bomb); 30 30 -
branches/new_class_id/src/world_entities/projectiles/bomb.h
r9709 r9715 17 17 class Bomb : public Projectile 18 18 { 19 NewObjectListDeclaration(Bomb);19 ObjectListDeclaration(Bomb); 20 20 public: 21 21 Bomb(const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/projectiles/boomerang_projectile.cc
r9709 r9715 27 27 28 28 #include "class_id.h" 29 NewObjectListDefinitionID(BoomerangProjectile, CL_BOOMERANG_PROJECTILE);29 ObjectListDefinitionID(BoomerangProjectile, CL_BOOMERANG_PROJECTILE); 30 30 CREATE_FAST_FACTORY_STATIC(BoomerangProjectile); 31 31 -
branches/new_class_id/src/world_entities/projectiles/boomerang_projectile.h
r9709 r9715 17 17 class BoomerangProjectile : public Projectile 18 18 { 19 NewObjectListDeclaration(BoomerangProjectile);19 ObjectListDeclaration(BoomerangProjectile); 20 20 public: 21 21 BoomerangProjectile (); -
branches/new_class_id/src/world_entities/projectiles/guided_missile.cc
r9709 r9715 26 26 27 27 #include "class_id.h" 28 NewObjectListDefinitionID(GuidedMissile, CL_GUIDED_MISSILE);28 ObjectListDefinitionID(GuidedMissile, CL_GUIDED_MISSILE); 29 29 CREATE_FAST_FACTORY_STATIC(GuidedMissile); 30 30 -
branches/new_class_id/src/world_entities/projectiles/guided_missile.h
r9709 r9715 16 16 class GuidedMissile : public Projectile 17 17 { 18 NewObjectListDeclaration(GuidedMissile);18 ObjectListDeclaration(GuidedMissile); 19 19 public: 20 20 GuidedMissile (); -
branches/new_class_id/src/world_entities/projectiles/hyperblast.cc
r9709 r9715 26 26 27 27 #include "class_id.h" 28 NewObjectListDefinitionID(Hyperblast, CL_HYPERBLAST);28 ObjectListDefinitionID(Hyperblast, CL_HYPERBLAST); 29 29 CREATE_FAST_FACTORY_STATIC(Hyperblast); 30 30 -
branches/new_class_id/src/world_entities/projectiles/hyperblast.h
r9709 r9715 17 17 class Hyperblast : public Projectile 18 18 { 19 NewObjectListDeclaration(Hyperblast);19 ObjectListDeclaration(Hyperblast); 20 20 public: 21 21 Hyperblast (); -
branches/new_class_id/src/world_entities/projectiles/laser.cc
r9709 r9715 29 29 30 30 #include "class_id.h" 31 NewObjectListDefinition(Laser);31 ObjectListDefinition(Laser); 32 32 CREATE_FAST_FACTORY_STATIC(Laser); 33 33 -
branches/new_class_id/src/world_entities/projectiles/laser.h
r9709 r9715 17 17 class Laser : public Projectile 18 18 { 19 NewObjectListDeclaration(Laser);19 ObjectListDeclaration(Laser); 20 20 public: 21 21 Laser (); -
branches/new_class_id/src/world_entities/projectiles/projectile.cc
r9705 r9715 26 26 #include "debug.h" 27 27 28 NewObjectListDefinition(Projectile);28 ObjectListDefinition(Projectile); 29 29 30 30 /** -
branches/new_class_id/src/world_entities/projectiles/projectile.h
r9709 r9715 18 18 class Projectile : public WorldEntity 19 19 { 20 NewObjectListDeclaration(Projectile);20 ObjectListDeclaration(Projectile); 21 21 public: 22 22 Projectile (); -
branches/new_class_id/src/world_entities/projectiles/rail_projectile.cc
r9709 r9715 29 29 30 30 #include "class_id.h" 31 NewObjectListDefinitionID(RailProjectile, CL_RAIL_PROJECTILE);31 ObjectListDefinitionID(RailProjectile, CL_RAIL_PROJECTILE); 32 32 CREATE_FAST_FACTORY_STATIC(RailProjectile); 33 33 -
branches/new_class_id/src/world_entities/projectiles/rail_projectile.h
r9709 r9715 17 17 class RailProjectile : public Projectile 18 18 { 19 NewObjectListDeclaration(RailProjectile);19 ObjectListDeclaration(RailProjectile); 20 20 public: 21 21 RailProjectile (); -
branches/new_class_id/src/world_entities/projectiles/rocket.cc
r9709 r9715 26 26 27 27 #include "class_id.h" 28 NewObjectListDefinitionID(Rocket, CL_ROCKET);28 ObjectListDefinitionID(Rocket, CL_ROCKET); 29 29 CREATE_FAST_FACTORY_STATIC(Rocket); 30 30 -
branches/new_class_id/src/world_entities/projectiles/rocket.h
r9709 r9715 15 15 class Rocket : public Projectile 16 16 { 17 NewObjectListDeclaration(Rocket);17 ObjectListDeclaration(Rocket); 18 18 19 19 public: -
branches/new_class_id/src/world_entities/projectiles/test_bullet.cc
r9709 r9715 25 25 26 26 #include "class_id.h" 27 NewObjectListDefinitionID(TestBullet, CL_TEST_BULLET);27 ObjectListDefinitionID(TestBullet, CL_TEST_BULLET); 28 28 CREATE_FAST_FACTORY_STATIC(TestBullet); 29 29 -
branches/new_class_id/src/world_entities/projectiles/test_bullet.h
r9709 r9715 17 17 class TestBullet : public Projectile 18 18 { 19 NewObjectListDeclaration(TestBullet);19 ObjectListDeclaration(TestBullet); 20 20 21 21 public: -
branches/new_class_id/src/world_entities/recorder.cc
r9709 r9715 23 23 24 24 #include "class_id.h" 25 NewObjectListDefinitionID(Recorder, CL_RECORDER);25 ObjectListDefinitionID(Recorder, CL_RECORDER); 26 26 CREATE_FACTORY(Recorder); 27 27 -
branches/new_class_id/src/world_entities/recorder.h
r9709 r9715 20 20 class Recorder : public WorldEntity 21 21 { 22 NewObjectListDeclaration(Recorder);22 ObjectListDeclaration(Recorder); 23 23 public: 24 24 Recorder (const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/satellite.cc
r9709 r9715 25 25 26 26 27 NewObjectListDefinition(Satellite);27 ObjectListDefinition(Satellite); 28 28 29 29 /** -
branches/new_class_id/src/world_entities/satellite.h
r9709 r9715 19 19 class Satellite : public WorldEntity 20 20 { 21 NewObjectListDeclaration(Satellite);21 ObjectListDeclaration(Satellite); 22 22 23 23 public: -
branches/new_class_id/src/world_entities/script_trigger.cc
r9709 r9715 20 20 #include "state.h" 21 21 22 NewObjectListDefinition(ScriptTrigger);22 ObjectListDefinition(ScriptTrigger); 23 23 24 24 CREATE_SCRIPTABLE_CLASS(ScriptTrigger, ScriptTrigger::classID(), -
branches/new_class_id/src/world_entities/script_trigger.h
r9709 r9715 18 18 class ScriptTrigger : public WorldEntity 19 19 { 20 NewObjectListDeclaration(ScriptTrigger);20 ObjectListDeclaration(ScriptTrigger); 21 21 public: 22 22 ScriptTrigger(const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/skybox.cc
r9709 r9715 32 32 33 33 #include "class_id.h" 34 NewObjectListDefinitionID(SkyBox, CL_SKYBOX);34 ObjectListDefinitionID(SkyBox, CL_SKYBOX); 35 35 CREATE_FACTORY(SkyBox); 36 36 -
branches/new_class_id/src/world_entities/skybox.h
r9709 r9715 27 27 class SkyBox : public WorldEntity 28 28 { 29 NewObjectListDeclaration(SkyBox);29 ObjectListDeclaration(SkyBox); 30 30 public: 31 31 SkyBox(const std::string& fileName = ""); -
branches/new_class_id/src/world_entities/skydome.cc
r9709 r9715 30 30 31 31 32 NewObjectListDefinition(Skydome);32 ObjectListDefinition(Skydome); 33 33 34 34 /** -
branches/new_class_id/src/world_entities/skydome.h
r9709 r9715 21 21 class Skydome : public WorldEntity 22 22 { 23 NewObjectListDeclaration(Skydome);23 ObjectListDeclaration(Skydome); 24 24 public: 25 25 Skydome(); -
branches/new_class_id/src/world_entities/skysphere.cc
r9709 r9715 32 32 33 33 34 NewObjectListDefinition(Skysphere);34 ObjectListDefinition(Skysphere); 35 35 36 36 /** -
branches/new_class_id/src/world_entities/skysphere.h
r9709 r9715 24 24 class Skysphere : public WorldEntity 25 25 { 26 NewObjectListDeclaration(Skysphere);26 ObjectListDeclaration(Skysphere); 27 27 28 28 public: -
branches/new_class_id/src/world_entities/space_ships/collision_probe.cc
r9709 r9715 25 25 26 26 #include "class_id.h" 27 NewObjectListDefinitionID(CollisionProbe, CL_COLLISION_PROBE);27 ObjectListDefinitionID(CollisionProbe, CL_COLLISION_PROBE); 28 28 29 29 CREATE_FACTORY(CollisionProbe); -
branches/new_class_id/src/world_entities/space_ships/collision_probe.h
r9709 r9715 13 13 class CollisionProbe : public Playable 14 14 { 15 NewObjectListDeclaration(CollisionProbe);15 ObjectListDeclaration(CollisionProbe); 16 16 17 17 public: -
branches/new_class_id/src/world_entities/space_ships/cruizer.cc
r9709 r9715 35 35 36 36 #include "class_id.h" 37 NewObjectListDefinitionID(Cruizer, CL_CRUIZER);37 ObjectListDefinitionID(Cruizer, CL_CRUIZER); 38 38 CREATE_FACTORY(Cruizer); 39 39 -
branches/new_class_id/src/world_entities/space_ships/cruizer.h
r9709 r9715 16 16 class Cruizer : public Playable 17 17 { 18 NewObjectListDeclaration(Cruizer);18 ObjectListDeclaration(Cruizer); 19 19 public: 20 20 Cruizer(const std::string& fileName); -
branches/new_class_id/src/world_entities/space_ships/helicopter.cc
r9709 r9715 35 35 36 36 #include "class_id.h" 37 NewObjectListDefinitionID(Helicopter, CL_HELICOPTER);37 ObjectListDefinitionID(Helicopter, CL_HELICOPTER); 38 38 CREATE_FACTORY(Helicopter); 39 39 #include "script_class.h" -
branches/new_class_id/src/world_entities/space_ships/helicopter.h
r9709 r9715 17 17 class Helicopter : public Playable 18 18 { 19 NewObjectListDeclaration(Helicopter);19 ObjectListDeclaration(Helicopter); 20 20 21 21 public: -
branches/new_class_id/src/world_entities/space_ships/hover.cc
r9709 r9715 35 35 36 36 #include "class_id.h" 37 NewObjectListDefinitionID(Hover, CL_HOVER);37 ObjectListDefinitionID(Hover, CL_HOVER); 38 38 CREATE_FACTORY(Hover); 39 39 -
branches/new_class_id/src/world_entities/space_ships/hover.h
r9709 r9715 15 15 class Hover : public Playable 16 16 { 17 NewObjectListDeclaration(Hover);17 ObjectListDeclaration(Hover); 18 18 public: 19 19 -
branches/new_class_id/src/world_entities/space_ships/space_ship.cc
r9709 r9715 54 54 55 55 #include "class_id.h" 56 NewObjectListDefinitionID(SpaceShip, CL_SPACE_SHIP);56 ObjectListDefinitionID(SpaceShip, CL_SPACE_SHIP); 57 57 CREATE_FACTORY(SpaceShip); 58 58 -
branches/new_class_id/src/world_entities/space_ships/space_ship.h
r9709 r9715 19 19 class SpaceShip : public Playable 20 20 { 21 NewObjectListDeclaration(SpaceShip);21 ObjectListDeclaration(SpaceShip); 22 22 23 23 public: -
branches/new_class_id/src/world_entities/space_ships/spacecraft_2d.cc
r9709 r9715 39 39 40 40 #include "class_id.h" 41 NewObjectListDefinitionID(Spacecraft2D, CL_SPACECRAFT_2D);41 ObjectListDefinitionID(Spacecraft2D, CL_SPACECRAFT_2D); 42 42 CREATE_FACTORY(Spacecraft2D); 43 43 -
branches/new_class_id/src/world_entities/space_ships/spacecraft_2d.h
r9709 r9715 16 16 class Spacecraft2D : public Playable 17 17 { 18 NewObjectListDeclaration(Spacecraft2D);18 ObjectListDeclaration(Spacecraft2D); 19 19 public: 20 20 Spacecraft2D(const std::string& fileName); -
branches/new_class_id/src/world_entities/space_ships/turbine_hover.cc
r9709 r9715 35 35 36 36 #include "class_id.h" 37 NewObjectListDefinitionID(TurbineHover, CL_TURBINE_HOVER);37 ObjectListDefinitionID(TurbineHover, CL_TURBINE_HOVER); 38 38 CREATE_FACTORY(TurbineHover); 39 39 -
branches/new_class_id/src/world_entities/space_ships/turbine_hover.h
r9709 r9715 18 18 class TurbineHover : public Playable 19 19 { 20 NewObjectListDeclaration(TurbineHover);20 ObjectListDeclaration(TurbineHover); 21 21 public: 22 22 TurbineHover(const std::string& fileName); -
branches/new_class_id/src/world_entities/spawning_point.cc
r9709 r9715 34 34 35 35 #include "class_id.h" 36 NewObjectListDefinitionID(SpawningPoint, CL_SPAWNING_POINT);36 ObjectListDefinitionID(SpawningPoint, CL_SPAWNING_POINT); 37 37 CREATE_FACTORY( SpawningPoint); 38 38 /** … … 109 109 bool found = false; 110 110 111 for ( NewObjectList<Playable>::const_iterator it = Playable::objectList().begin();111 for (ObjectList<Playable>::const_iterator it = Playable::objectList().begin(); 112 112 it != Playable::objectList().end(); 113 113 ++it) … … 160 160 bool found = false; 161 161 162 for ( NewObjectList<Playable>::const_iterator it2 = Playable::objectList().begin();162 for (ObjectList<Playable>::const_iterator it2 = Playable::objectList().begin(); 163 163 it2 != Playable::objectList().end(); 164 164 ++it2) … … 235 235 Playable * playable = NULL; 236 236 237 for ( NewObjectList<SpawningPoint>::const_iterator it = SpawningPoint::objectList().begin();237 for (ObjectList<SpawningPoint>::const_iterator it = SpawningPoint::objectList().begin(); 238 238 it != SpawningPoint::objectList().end(); 239 239 ++it) … … 253 253 } 254 254 255 for ( NewObjectList<Playable>::const_iterator it = Playable::objectList().begin();255 for (ObjectList<Playable>::const_iterator it = Playable::objectList().begin(); 256 256 it != Playable::objectList().end(); 257 257 ++it) -
branches/new_class_id/src/world_entities/spawning_point.h
r9705 r9715 42 42 */ 43 43 class SpawningPoint : public WorldEntity { 44 NewObjectListDeclaration(SpawningPoint);44 ObjectListDeclaration(SpawningPoint); 45 45 public: 46 46 SpawningPoint(const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/spectator.cc
r9709 r9715 23 23 24 24 #include "class_id.h" 25 NewObjectListDefinitionID(Spectator, CL_SPECTATOR);25 ObjectListDefinitionID(Spectator, CL_SPECTATOR); 26 26 CREATE_FACTORY(Spectator); 27 27 -
branches/new_class_id/src/world_entities/spectator.h
r9709 r9715 11 11 class Spectator : public Playable 12 12 { 13 NewObjectListDeclaration(Spectator);13 ObjectListDeclaration(Spectator); 14 14 15 15 public: -
branches/new_class_id/src/world_entities/terrain.cc
r9713 r9715 35 35 36 36 #include "class_id.h" 37 NewObjectListDefinitionID(Terrain, CL_TERRAIN);37 ObjectListDefinitionID(Terrain, CL_TERRAIN); 38 38 CREATE_FACTORY(Terrain); 39 39 -
branches/new_class_id/src/world_entities/terrain.h
r9709 r9715 25 25 class Terrain : public WorldEntity 26 26 { 27 NewObjectListDeclaration(Terrain);27 ObjectListDeclaration(Terrain); 28 28 29 29 public: -
branches/new_class_id/src/world_entities/test_entity.cc
r9709 r9715 36 36 37 37 #include "class_id.h" 38 NewObjectListDefinition(TestEntity);38 ObjectListDefinition(TestEntity); 39 39 CREATE_FACTORY(TestEntity); 40 40 -
branches/new_class_id/src/world_entities/test_entity.h
r9709 r9715 15 15 class TestEntity : public WorldEntity, public PhysicsInterface 16 16 { 17 NewObjectListDeclaration(TestEntity);17 ObjectListDeclaration(TestEntity); 18 18 public: 19 19 TestEntity (); -
branches/new_class_id/src/world_entities/weapons/aim.cc
r9709 r9715 29 29 30 30 31 NewObjectListDefinition(Aim);31 ObjectListDefinition(Aim); 32 32 33 33 /** -
branches/new_class_id/src/world_entities/weapons/aim.h
r9709 r9715 29 29 class Aim : public PNode, public Element2D 30 30 { 31 NewObjectListDeclaration(Aim);31 ObjectListDeclaration(Aim); 32 32 33 33 public: -
branches/new_class_id/src/world_entities/weapons/aiming_system.cc
r9709 r9715 30 30 31 31 32 NewObjectListDefinition(AimingSystem);32 ObjectListDefinition(AimingSystem); 33 33 34 34 /** -
branches/new_class_id/src/world_entities/weapons/aiming_system.h
r9709 r9715 21 21 class AimingSystem : public WorldEntity 22 22 { 23 NewObjectListDeclaration(AimingSystem);23 ObjectListDeclaration(AimingSystem); 24 24 25 25 public: -
branches/new_class_id/src/world_entities/weapons/aiming_turret.cc
r9709 r9715 28 28 29 29 #include "class_id.h" 30 NewObjectListDefinitionID(AimingTurret, CL_AIMING_TURRET);30 ObjectListDefinitionID(AimingTurret, CL_AIMING_TURRET); 31 31 CREATE_FACTORY(AimingTurret); 32 32 -
branches/new_class_id/src/world_entities/weapons/aiming_turret.h
r9709 r9715 13 13 class AimingTurret : public Weapon 14 14 { 15 NewObjectListDeclaration(AimingTurret);15 ObjectListDeclaration(AimingTurret); 16 16 17 17 public: -
branches/new_class_id/src/world_entities/weapons/ammo_container.cc
r9705 r9715 23 23 24 24 25 NewObjectListDefinition(AmmoContainer);25 ObjectListDefinition(AmmoContainer); 26 26 /** 27 27 * standard constructor 28 28 * @todo this constructor is not jet implemented - do it 29 29 */ 30 AmmoContainer::AmmoContainer (const NewClassID& projectileType, float maxEnergy)30 AmmoContainer::AmmoContainer (const ClassID& projectileType, float maxEnergy) 31 31 { 32 32 this->registerObject(this, AmmoContainer::_objectList); -
branches/new_class_id/src/world_entities/weapons/ammo_container.h
r9705 r9715 17 17 //! A class for Storing energy of Projectiles. 18 18 class AmmoContainer : public BaseObject { 19 NewObjectListDeclaration(AmmoContainer);19 ObjectListDeclaration(AmmoContainer); 20 20 21 21 public: 22 AmmoContainer(const NewClassID& id, float maxEnergy = DEFAULT_MAX_ENERGY);22 AmmoContainer(const ClassID& id, float maxEnergy = DEFAULT_MAX_ENERGY); 23 23 virtual ~AmmoContainer(); 24 24 25 25 bool operator=(int projectileType) const { return (this->projectileType == projectileType); }; 26 NewClassID getProjectileType() const { return this->projectileType; };26 ClassID getProjectileType() const { return this->projectileType; }; 27 27 28 28 float increaseEnergy(float energy); … … 42 42 float maxEnergy; 43 43 44 NewClassID projectileType;44 ClassID projectileType; 45 45 }; 46 46 -
branches/new_class_id/src/world_entities/weapons/boomerang_gun.cc
r9709 r9715 28 28 29 29 #include "class_id.h" 30 NewObjectListDefinitionID(BoomerangGun, CL_BOOMERANG_GUN);30 ObjectListDefinitionID(BoomerangGun, CL_BOOMERANG_GUN); 31 31 CREATE_FACTORY(BoomerangGun); 32 32 -
branches/new_class_id/src/world_entities/weapons/boomerang_gun.h
r9709 r9715 11 11 class BoomerangGun : public Weapon 12 12 { 13 NewObjectListDeclaration(BoomerangGun);13 ObjectListDeclaration(BoomerangGun); 14 14 public: 15 15 BoomerangGun (); -
branches/new_class_id/src/world_entities/weapons/cannon.cc
r9709 r9715 37 37 38 38 #include "class_id.h" 39 NewObjectListDefinitionID(Cannon, CL_CANNON);39 ObjectListDefinitionID(Cannon, CL_CANNON); 40 40 CREATE_FACTORY(Cannon); 41 41 -
branches/new_class_id/src/world_entities/weapons/cannon.h
r9709 r9715 12 12 class Cannon : public Weapon 13 13 { 14 NewObjectListDeclaration(Cannon);14 ObjectListDeclaration(Cannon); 15 15 public: 16 16 Cannon (); -
branches/new_class_id/src/world_entities/weapons/crosshair.cc
r9705 r9715 26 26 27 27 28 NewObjectListDefinition(Crosshair);28 ObjectListDefinition(Crosshair); 29 29 /** 30 30 * standart constructor -
branches/new_class_id/src/world_entities/weapons/crosshair.h
r9705 r9715 22 22 //! A class that enables the 23 23 class Crosshair : public PNode, public Element2D, public EventListener { 24 NewObjectListDeclaration(Crosshair);24 ObjectListDeclaration(Crosshair); 25 25 public: 26 26 Crosshair(const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/weapons/fps_sniper_rifle.cc
r9709 r9715 40 40 41 41 #include "class_id.h" 42 NewObjectListDefinitionID(FPSSniperRifle, CL_FPS_SNIPER_RIFLE);42 ObjectListDefinitionID(FPSSniperRifle, CL_FPS_SNIPER_RIFLE); 43 43 CREATE_FACTORY(FPSSniperRifle); 44 44 -
branches/new_class_id/src/world_entities/weapons/fps_sniper_rifle.h
r9709 r9715 39 39 class FPSSniperRifle : public Weapon 40 40 { 41 NewObjectListDeclaration(FPSSniperRifle);41 ObjectListDeclaration(FPSSniperRifle); 42 42 43 43 public: -
branches/new_class_id/src/world_entities/weapons/hyperblaster.cc
r9709 r9715 36 36 37 37 #include "class_id.h" 38 NewObjectListDefinitionID(Hyperblaster, CL_HYPERBLASTER);38 ObjectListDefinitionID(Hyperblaster, CL_HYPERBLASTER); 39 39 CREATE_FACTORY(Hyperblaster); 40 40 -
branches/new_class_id/src/world_entities/weapons/hyperblaster.h
r9709 r9715 12 12 class Hyperblaster : public Weapon 13 13 { 14 NewObjectListDeclaration(Hyperblaster);14 ObjectListDeclaration(Hyperblaster); 15 15 public: 16 16 Hyperblaster (const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/weapons/laser_cannon.cc
r9709 r9715 32 32 33 33 #include "class_id.h" 34 NewObjectListDefinitionID(LaserCannon, CL_LASER_CANNON);34 ObjectListDefinitionID(LaserCannon, CL_LASER_CANNON); 35 35 CREATE_FACTORY(LaserCannon); 36 36 -
branches/new_class_id/src/world_entities/weapons/laser_cannon.h
r9709 r9715 29 29 class LaserCannon : public Weapon 30 30 { 31 NewObjectListDeclaration(LaserCannon);31 ObjectListDeclaration(LaserCannon); 32 32 public: 33 33 LaserCannon (const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/weapons/targeting_turret.cc
r9709 r9715 27 27 28 28 #include "class_id.h" 29 NewObjectListDefinitionID(TargetingTurret, CL_TARGETING_TURRET);29 ObjectListDefinitionID(TargetingTurret, CL_TARGETING_TURRET); 30 30 CREATE_FACTORY(TargetingTurret); 31 31 -
branches/new_class_id/src/world_entities/weapons/targeting_turret.h
r9709 r9715 12 12 class TargetingTurret : public Weapon 13 13 { 14 NewObjectListDeclaration(TargetingTurret);14 ObjectListDeclaration(TargetingTurret); 15 15 public: 16 16 TargetingTurret(const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/weapons/test_gun.cc
r9709 r9715 34 34 35 35 #include "class_id.h" 36 NewObjectListDefinitionID(TestGun, CL_TEST_GUN);36 ObjectListDefinitionID(TestGun, CL_TEST_GUN); 37 37 CREATE_FACTORY(TestGun); 38 38 /** -
branches/new_class_id/src/world_entities/weapons/test_gun.h
r9709 r9715 37 37 class TestGun : public Weapon 38 38 { 39 NewObjectListDeclaration(TestGun);39 ObjectListDeclaration(TestGun); 40 40 public: 41 41 TestGun (int leftRight); -
branches/new_class_id/src/world_entities/weapons/turret.cc
r9709 r9715 28 28 29 29 #include "class_id.h" 30 NewObjectListDefinitionID(Turret, CL_TURRET);30 ObjectListDefinitionID(Turret, CL_TURRET); 31 31 CREATE_FACTORY(Turret); 32 32 -
branches/new_class_id/src/world_entities/weapons/turret.h
r9709 r9715 11 11 class Turret : public Weapon 12 12 { 13 NewObjectListDeclaration(Turret);13 ObjectListDeclaration(Turret); 14 14 public: 15 15 Turret (); -
branches/new_class_id/src/world_entities/weapons/weapon.cc
r9709 r9715 35 35 #include "elements/glgui_energywidget.h" 36 36 37 NewObjectListDefinition(Weapon);37 ObjectListDefinition(Weapon); 38 38 39 39 //////////////////// … … 72 72 * @returns the newly created Weapon. 73 73 */ 74 Weapon* Weapon::createWeapon(const NewClassID& weaponID)74 Weapon* Weapon::createWeapon(const ClassID& weaponID) 75 75 { 76 76 BaseObject* createdObject = Factory::fabricate(weaponID); … … 179 179 * What it does, is telling the Weapon what Projectiles it can Emit. 180 180 */ 181 void Weapon::setProjectileType(const NewClassID& projectile)181 void Weapon::setProjectileType(const ClassID& projectile) 182 182 { 183 183 this->projectile = projectile; -
branches/new_class_id/src/world_entities/weapons/weapon.h
r9705 r9715 83 83 class Weapon : public WorldEntity 84 84 { 85 NewObjectListDeclaration(Weapon);85 ObjectListDeclaration(Weapon); 86 86 87 87 public: … … 89 89 Weapon (); 90 90 virtual ~Weapon (); 91 static Weapon* createWeapon(const NewClassID& weaponID);91 static Weapon* createWeapon(const ClassID& weaponID); 92 92 static Weapon* createWeapon(const std::string& weaponName); 93 93 … … 113 113 /** @returns the Capabilities of this Weapon */ 114 114 inline long getCapability() const { return this->capability; }; 115 void setProjectileType(const NewClassID& projectile);115 void setProjectileType(const ClassID& projectile); 116 116 void setProjectileTypeC(const std::string& projectile); 117 117 /** @returns The projectile's classID */ 118 inline NewClassID getProjectileType() { return this->projectile; };118 inline ClassID getProjectileType() { return this->projectile; }; 119 119 /** @returns the FastFactory, that creates Projectiles of type getProjectile */ 120 120 inline FastFactory* getProjectileFactory() { return this->projectileFactory; }; … … 233 233 bool chargeable; //!< if the Weapon is charcheable (if true, the weapon will charge before it fires.) 234 234 235 NewClassID projectile; //!< the projectile used for this weapon (since they should be generated via macro and the FastFactory, only the ClassID must be known.)235 ClassID projectile; //!< the projectile used for this weapon (since they should be generated via macro and the FastFactory, only the ClassID must be known.) 236 236 FastFactory* projectileFactory; //!< A factory, that produces and handles the projectiles. 237 237 }; -
branches/new_class_id/src/world_entities/weapons/weapon_manager.cc
r9705 r9715 31 31 32 32 33 NewObjectListDefinition(WeaponManager);33 ObjectListDefinition(WeaponManager); 34 34 /** 35 35 * @brief this initializes the weaponManager for a given nnumber of weapon slots … … 311 311 * @param ammo the ammo to increase 312 312 */ 313 float WeaponManager::increaseAmmunition(const NewClassID& projectileType, float ammo)313 float WeaponManager::increaseAmmunition(const ClassID& projectileType, float ammo) 314 314 { 315 315 return this->getAmmoContainer(projectileType)->increaseEnergy(ammo); … … 523 523 } 524 524 525 CountPointer<AmmoContainer>& WeaponManager::getAmmoContainer(const NewClassID& projectileType)525 CountPointer<AmmoContainer>& WeaponManager::getAmmoContainer(const ClassID& projectileType) 526 526 { 527 527 for (unsigned int i = 0; i < this->ammo.size(); i++) -
branches/new_class_id/src/world_entities/weapons/weapon_manager.h
r9705 r9715 39 39 */ 40 40 class WeaponManager : public BaseObject { 41 NewObjectListDeclaration(WeaponManager);41 ObjectListDeclaration(WeaponManager); 42 42 43 43 //! an enumerator defining a Slot, where a Weapon can be stored inside. … … 90 90 void changeWeaponConfig(int weaponConfig); 91 91 92 float increaseAmmunition(const NewClassID& projectileType, float ammo);92 float increaseAmmunition(const ClassID& projectileType, float ammo); 93 93 float inclreaseAmmunition(const Weapon* weapon, float ammo); 94 94 … … 107 107 // private: 108 108 int getNextFreeSlot(int configID, long capability = WTYPE_ALL); 109 CountPointer<AmmoContainer>& getAmmoContainer(const NewClassID& projectileType);109 CountPointer<AmmoContainer>& getAmmoContainer(const ClassID& projectileType); 110 110 CountPointer<AmmoContainer>& getAmmoContainer(const Weapon* weapon); 111 111 -
branches/new_class_id/src/world_entities/world_entity.cc
r9705 r9715 48 48 49 49 50 NewObjectListDefinition(WorldEntity);50 ObjectListDefinition(WorldEntity); 51 51 /** 52 52 * Loads the WordEntity-specific Part of any derived Class … … 302 302 * @param target1 a filter target (classID) 303 303 */ 304 void WorldEntity::subscribeReaction(CREngine::CRType type, const NewClassID& target1)304 void WorldEntity::subscribeReaction(CREngine::CRType type, const ClassID& target1) 305 305 { 306 306 this->subscribeReaction(type); … … 316 316 * @param target1 a filter target (classID) 317 317 */ 318 void WorldEntity::subscribeReaction(CREngine::CRType type, const NewClassID& target1, const NewClassID& target2)318 void WorldEntity::subscribeReaction(CREngine::CRType type, const ClassID& target1, const ClassID& target2) 319 319 { 320 320 this->subscribeReaction(type); … … 331 331 * @param target1 a filter target (classID) 332 332 */ 333 void WorldEntity::subscribeReaction(CREngine::CRType type, const NewClassID& target1, const NewClassID& target2, const NewClassID& target3)333 void WorldEntity::subscribeReaction(CREngine::CRType type, const ClassID& target1, const ClassID& target2, const ClassID& target3) 334 334 { 335 335 this->subscribeReaction(type); … … 347 347 * @param target1 a filter target (classID) 348 348 */ 349 void WorldEntity::subscribeReaction(CREngine::CRType type, const NewClassID& target1, const NewClassID& target2, const NewClassID& target3, const NewClassID& target4)349 void WorldEntity::subscribeReaction(CREngine::CRType type, const ClassID& target1, const ClassID& target2, const ClassID& target3, const ClassID& target4) 350 350 { 351 351 this->subscribeReaction(type); -
branches/new_class_id/src/world_entities/world_entity.h
r9705 r9715 41 41 class WorldEntity : public PNode 42 42 { 43 NewObjectListDeclaration(WorldEntity);43 ObjectListDeclaration(WorldEntity); 44 44 public: 45 45 WorldEntity(); … … 83 83 /* --- Collision Reaction Block --- */ 84 84 void subscribeReaction(CREngine::CRType type); 85 void subscribeReaction(CREngine::CRType type, const NewClassID& target1);86 void subscribeReaction(CREngine::CRType type, const NewClassID& target1, const NewClassID& target2);87 void subscribeReaction(CREngine::CRType type, const NewClassID& target1, const NewClassID& target2, const NewClassID& target3);88 void subscribeReaction(CREngine::CRType type, const NewClassID& target1, const NewClassID& target2, const NewClassID& target3, const NewClassID& target4);85 void subscribeReaction(CREngine::CRType type, const ClassID& target1); 86 void subscribeReaction(CREngine::CRType type, const ClassID& target1, const ClassID& target2); 87 void subscribeReaction(CREngine::CRType type, const ClassID& target1, const ClassID& target2, const ClassID& target3); 88 void subscribeReaction(CREngine::CRType type, const ClassID& target1, const ClassID& target2, const ClassID& target3, const ClassID& target4); 89 89 90 90 void unsubscribeReaction(CREngine::CRType type);
Note: See TracChangeset
for help on using the changeset viewer.