- Timestamp:
- Jan 17, 2006, 10:01:07 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 90 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.cc
r6498 r6512 123 123 void PNode::loadParams(const TiXmlElement* root) 124 124 { 125 static_cast<BaseObject*>(this)->loadParams(root);125 BaseObject::loadParams(root); 126 126 127 127 LoadParam(root, "rel-coor", this, PNode, setRelCoor) -
trunk/src/lib/coord/p_node.h
r6498 r6512 78 78 virtual ~PNode (); 79 79 80 v oid loadParams(const TiXmlElement* root);80 virtual void loadParams(const TiXmlElement* root); 81 81 82 82 void init(); -
trunk/src/lib/graphics/light.cc
r5982 r6512 86 86 void Light::loadParams(const TiXmlElement* root) 87 87 { 88 static_cast<PNode*>(this)->loadParams(root);88 PNode::loadParams(root); 89 89 90 90 LoadParam(root, "diffuse-color", this, Light, setDiffuseColor) -
trunk/src/lib/graphics/light.h
r5405 r6512 29 29 virtual ~Light(); 30 30 31 v oid loadParams(const TiXmlElement* root);31 virtual void loadParams(const TiXmlElement* root); 32 32 33 33 void setDiffuseColor(GLfloat r, GLfloat g, GLfloat b); … … 95 95 inline static LightManager* getInstance() { if (!singletonRef) singletonRef = new LightManager(); return singletonRef; }; 96 96 97 v oid loadParams(const TiXmlElement* root);97 virtual void loadParams(const TiXmlElement* root); 98 98 void loadLights(const TiXmlElement* root); 99 99 -
trunk/src/lib/graphics/render2D/element_2d.cc
r6307 r6512 131 131 void Element2D::loadParams(const TiXmlElement* root) 132 132 { 133 BaseObject::loadParams(root); 134 133 135 // ELEMENT2D-native settings. 134 136 LoadParam(root, "alignment", this, Element2D, setAlignment) -
trunk/src/lib/graphics/render2D/element_2d.h
r6299 r6512 91 91 virtual ~Element2D(); 92 92 93 v oid loadParams(const TiXmlElement* root);93 virtual void loadParams(const TiXmlElement* root); 94 94 95 95 // ACTIVATION // -
trunk/src/lib/gui/gl_gui/glmenu/glmenu_imagescreen.h
r5312 r6512 17 17 public: 18 18 GLMenuImageScreen (const TiXmlElement* root = NULL); 19 v oid loadParams(const TiXmlElement* root);19 virtual void loadParams(const TiXmlElement* root); 20 20 virtual ~GLMenuImageScreen (); 21 21 -
trunk/src/lib/lang/base_object.h
r6341 r6512 28 28 virtual ~BaseObject (); 29 29 30 v oid loadParams(const TiXmlElement* root);30 virtual void loadParams(const TiXmlElement* root); 31 31 void setName (const char* newName); 32 32 /** returns the Name of this Object */ -
trunk/src/lib/particles/particle_emitter.cc
r5750 r6512 93 93 void ParticleEmitter::loadParams(const TiXmlElement* root) 94 94 { 95 static_cast<PNode*>(this)->loadParams(root);95 PNode::loadParams(root); 96 96 97 97 LoadParam(root, "type", this, ParticleEmitter, setType) -
trunk/src/lib/particles/particle_emitter.h
r5405 r6512 39 39 40 40 void init(); 41 v oid loadParams(const TiXmlElement* root);41 virtual void loadParams(const TiXmlElement* root); 42 42 43 43 /* controlling the emitter: interface */ -
trunk/src/lib/particles/particle_engine.h
r5944 r6512 37 37 inline static ParticleEngine* getInstance() { if (!singletonRef) singletonRef = new ParticleEngine(); return singletonRef; }; 38 38 39 v oid loadParams(const TiXmlElement* root);39 virtual void loadParams(const TiXmlElement* root); 40 40 41 41 void tick(float dt); -
trunk/src/lib/particles/particle_system.cc
r6308 r6512 116 116 void ParticleSystem::loadParams(const TiXmlElement* root) 117 117 { 118 static_cast<WorldEntity*>(this)->loadParams(root);119 static_cast<PhysicsInterface*>(this)->loadParams(root);118 WorldEntity::loadParams(root); 119 PhysicsInterface::loadParams(root); 120 120 121 121 LoadParam(root, "max-count", this, ParticleSystem, setMaxCount) -
trunk/src/lib/particles/particle_system.h
r5446 r6512 74 74 75 75 void init(); 76 v oid loadParams(const TiXmlElement* root);76 virtual void loadParams(const TiXmlElement* root); 77 77 78 78 void setType(const char* particleType); -
trunk/src/lib/physics/fields/field.cc
r5708 r6512 58 58 void Field::loadParams(const TiXmlElement* root) 59 59 { 60 static_cast<PNode*>(this)->loadParams(root);60 PNode::loadParams(root); 61 61 62 62 LoadParam(root, "magnitude", this, Field, setMagnitude) -
trunk/src/lib/physics/fields/field.h
r5405 r6512 39 39 40 40 void init(); 41 v oid loadParams(const TiXmlElement* root);41 virtual void loadParams(const TiXmlElement* root); 42 42 43 43 /** -
trunk/src/lib/physics/fields/gravity.cc
r5750 r6512 44 44 void Gravity::loadParams(const TiXmlElement* root) 45 45 { 46 static_cast<Field*>(this)->loadParams(root);46 Field::loadParams(root); 47 47 } 48 48 -
trunk/src/lib/physics/fields/gravity.h
r5405 r6512 21 21 virtual ~Gravity(); 22 22 23 v oid loadParams(const TiXmlElement* root);23 virtual void loadParams(const TiXmlElement* root); 24 24 25 25 virtual Vector calcForce(const Vector& data) const; -
trunk/src/lib/physics/physics_connection.cc
r5750 r6512 50 50 this->type = PCON_PhysIField; 51 51 52 static_cast<BaseObject*>(this)->loadParams(root);52 BaseObject::loadParams(root); 53 53 54 54 LoadParam(root, "subject", this, PhysicsConnection, setSubject) -
trunk/src/lib/physics/physics_engine.h
r5779 r6512 27 27 inline static PhysicsEngine* getInstance() { if (!singletonRef) singletonRef = new PhysicsEngine(); return singletonRef; }; 28 28 29 v oid loadParams(const TiXmlElement* root);29 virtual void loadParams(const TiXmlElement* root); 30 30 void loadFields(const TiXmlElement* root); 31 31 void loadConnections(const TiXmlElement* root); -
trunk/src/proto/proto_world_entity.cc
r5509 r6512 63 63 { 64 64 // all the clases this Entity is directly derived from must be called in this way, to load all settings. 65 static_cast<WorldEntity*>(this)->loadParam(root);65 WorldEntity::loadParam(root); 66 66 67 67 -
trunk/src/proto/proto_world_entity.h
r5509 r6512 17 17 virtual ~ProtoWorldEntity(); 18 18 19 v oid loadParams(const TiXmlElement* root);19 virtual void loadParams(const TiXmlElement* root); 20 20 void init(); 21 21 -
trunk/src/story_entities/campaign.cc
r6424 r6512 61 61 void Campaign::loadParams(const TiXmlElement* root) 62 62 { 63 static_cast<StoryEntity*>(this)->loadParams(root);63 StoryEntity::loadParams(root); 64 64 65 65 PRINTF(4)("Loaded Campaign specific stuff\n"); -
trunk/src/story_entities/campaign.h
r6424 r6512 23 23 virtual ~Campaign (); 24 24 25 v oid loadParams(const TiXmlElement* root);25 virtual void loadParams(const TiXmlElement* root); 26 26 27 27 virtual bool start(); -
trunk/src/story_entities/campaign_data.h
r6424 r6512 21 21 virtual ~CampaignData(); 22 22 23 v oid loadParams(const TiXmlElement* root);23 virtual void loadParams(const TiXmlElement* root); 24 24 25 25 void loadData(const TiXmlElement* root); -
trunk/src/story_entities/dedicated_server_world.cc
r6424 r6512 63 63 void DedicatedServerWorld::loadParams(const TiXmlElement* root) 64 64 { 65 static_cast<GameWorld*>(this)->loadParams(root);65 GameWorld::loadParams(root); 66 66 67 67 PRINTF(4)("Loaded DedicatedServerWorld specific stuff\n"); -
trunk/src/story_entities/dedicated_server_world.h
r6424 r6512 25 25 virtual ~DedicatedServerWorld (); 26 26 27 v oid loadParams(const TiXmlElement* root);27 virtual void loadParams(const TiXmlElement* root); 28 28 29 29 private: -
trunk/src/story_entities/game_world.cc
r6498 r6512 110 110 void GameWorld::loadParams(const TiXmlElement* root) 111 111 { 112 static_cast<StoryEntity*>(this)->loadParams(root);112 StoryEntity::loadParams(root); 113 113 114 114 LoadParam(root, "path", this, GameWorld, setPath) -
trunk/src/story_entities/game_world.h
r6498 r6512 29 29 virtual ~GameWorld (); 30 30 31 v oid loadParams(const TiXmlElement* root);31 virtual void loadParams(const TiXmlElement* root); 32 32 33 33 /* functions from story-entity */ -
trunk/src/story_entities/multi_player_world.cc
r6498 r6512 68 68 void MultiPlayerWorld::loadParams(const TiXmlElement* root) 69 69 { 70 static_cast<GameWorld*>(this)->loadParams(root);70 GameWorld::loadParams(root); 71 71 72 72 PRINTF(4)("Creating a MultiPlayerWorld\n"); -
trunk/src/story_entities/multi_player_world.h
r6498 r6512 25 25 virtual ~MultiPlayerWorld (); 26 26 27 v oid loadParams(const TiXmlElement* root);27 virtual void loadParams(const TiXmlElement* root); 28 28 29 29 void debug(); -
trunk/src/story_entities/single_player_world.cc
r6424 r6512 71 71 void SinglePlayerWorld::loadParams(const TiXmlElement* root) 72 72 { 73 static_cast<GameWorld*>(this)->loadParams(root);73 GameWorld::loadParams(root); 74 74 75 75 PRINTF(4)("Loaded SinglePlayerWorld specific stuff\n"); -
trunk/src/story_entities/single_player_world.h
r6424 r6512 27 27 virtual ~SinglePlayerWorld (); 28 28 29 v oid loadParams(const TiXmlElement* root);29 virtual void loadParams(const TiXmlElement* root); 30 30 }; 31 31 -
trunk/src/story_entities/story_entity.cc
r6424 r6512 57 57 void StoryEntity::loadParams(const TiXmlElement* root) 58 58 { 59 static_cast<BaseObject*>(this)->loadParams(root);59 BaseObject::loadParams(root); 60 60 61 61 LoadParam(root, "identifier", this, StoryEntity, setStoryID) -
trunk/src/story_entities/story_entity.h
r6424 r6512 30 30 virtual ~StoryEntity (); 31 31 32 v oid loadParams(const TiXmlElement* root);32 virtual void loadParams(const TiXmlElement* root); 33 33 34 34 /* initialisation and loading */ -
trunk/src/subprojects/collision_detection/collision_test_entity.cc
r5750 r6512 71 71 void CollisionTestEntity::loadParams(const TiXmlElement* root) 72 72 { 73 static_cast<WorldEntity*>(this)->loadParams(root);73 WorldEntity::loadParams(root); 74 74 } 75 75 -
trunk/src/subprojects/collision_detection/collision_test_entity.h
r5486 r6512 24 24 25 25 void init(); 26 v oid loadParams(const TiXmlElement* root);26 virtual void loadParams(const TiXmlElement* root); 27 27 28 28 -
trunk/src/util/hud.cc
r6498 r6512 55 55 void Hud::loadParams(const TiXmlElement* root) 56 56 { 57 Element2D::loadParams(root); 57 58 } 58 59 -
trunk/src/util/hud.h
r6443 r6512 23 23 24 24 25 v oid loadParams(const TiXmlElement* root);25 virtual void loadParams(const TiXmlElement* root); 26 26 27 27 void setBackGround(); -
trunk/src/util/track/track_manager.cc
r5944 r6512 394 394 * @param root the TiXmlElement to load the Data from 395 395 */ 396 boolTrackManager::loadParams(const TiXmlElement* root)396 void TrackManager::loadParams(const TiXmlElement* root) 397 397 { 398 398 double x, y, z, d; -
trunk/src/util/track/track_manager.h
r5313 r6512 139 139 inline static TrackManager* getInstance() { if (!singletonRef) singletonRef = new TrackManager(); return singletonRef; }; 140 140 141 boolloadParams(const TiXmlElement* root);141 virtual void loadParams(const TiXmlElement* root); 142 142 143 143 // Methods to change the Path (initialisation) -
trunk/src/world_entities/creatures/md2_creature.cc
r6281 r6512 205 205 void MD2Creature::loadParams(const TiXmlElement* root) 206 206 { 207 static_cast<WorldEntity*>(this)->loadParams(root);207 WorldEntity::loadParams(root); 208 208 } 209 209 -
trunk/src/world_entities/creatures/md2_creature.h
r6222 r6512 25 25 26 26 void init(); 27 v oid loadParams(const TiXmlElement* root);27 virtual void loadParams(const TiXmlElement* root); 28 28 29 29 virtual void enter(); -
trunk/src/world_entities/environment.cc
r6142 r6512 71 71 void Environment::loadParams(const TiXmlElement* root) 72 72 { 73 static_cast<WorldEntity*>(this)->loadParams(root);73 WorldEntity::loadParams(root); 74 74 } 75 75 -
trunk/src/world_entities/environment.h
r5994 r6512 24 24 25 25 void init(); 26 v oid loadParams(const TiXmlElement* root);26 virtual void loadParams(const TiXmlElement* root); 27 27 28 28 -
trunk/src/world_entities/npcs/ground_turret.cc
r6439 r6512 76 76 { 77 77 // all the clases this Entity is directly derived from must be called in this way, to load all settings. 78 static_cast<NPC*>(this)->loadParams(root);78 NPC::loadParams(root); 79 79 80 80 -
trunk/src/world_entities/npcs/ground_turret.h
r6432 r6512 20 20 21 21 void init(); 22 v oid loadParams(const TiXmlElement* root);22 virtual void loadParams(const TiXmlElement* root); 23 23 24 24 virtual void postSpawn (); -
trunk/src/world_entities/power_ups/laser_power_up.cc
r6424 r6512 65 65 void LaserPowerUp::loadParams(const TiXmlElement* root) 66 66 { 67 static_cast<PowerUp*>(this)->loadParams(root);67 PowerUp::loadParams(root); 68 68 69 69 } -
trunk/src/world_entities/power_ups/laser_power_up.h
r6424 r6512 19 19 virtual ~LaserPowerUp (); 20 20 21 virtual void loadParams(const TiXmlElement* root); 22 23 21 24 virtual void LaserPowerUp::collidesWith(WorldEntity* entity, const Vector& location); 22 25 virtual void tick(float dt); … … 28 31 private: 29 32 void init(); 30 void loadParams(const TiXmlElement* root);31 33 32 34 private: -
trunk/src/world_entities/power_ups/param_power_up.cc
r6498 r6512 63 63 void ParamPowerUp::loadParams(const TiXmlElement* root) 64 64 { 65 static_cast<PowerUp*>(this)->loadParams(root);65 PowerUp::loadParams(root); 66 66 LoadParam(root, "type", this, ParamPowerUp, setType); 67 67 -
trunk/src/world_entities/power_ups/param_power_up.h
r6424 r6512 38 38 private: 39 39 void init(); 40 v oid loadParams(const TiXmlElement* root);40 virtual void loadParams(const TiXmlElement* root); 41 41 42 42 private: -
trunk/src/world_entities/power_ups/power_up.cc
r6498 r6512 48 48 void PowerUp::loadParams(const TiXmlElement* root) 49 49 { 50 static_cast<WorldEntity*>(this)->loadParams(root);50 WorldEntity::loadParams(root); 51 51 } 52 52 -
trunk/src/world_entities/power_ups/power_up.h
r6424 r6512 20 20 21 21 public: 22 v oid loadParams(const TiXmlElement* root);22 virtual void loadParams(const TiXmlElement* root); 23 23 void collidesWith (WorldEntity* entity, const Vector& location); 24 24 -
trunk/src/world_entities/power_ups/turret_power_up.cc
r6498 r6512 65 65 void TurretPowerUp::loadParams(const TiXmlElement* root) 66 66 { 67 static_cast<PowerUp*>(this)->loadParams(root);67 PowerUp::loadParams(root); 68 68 69 69 } -
trunk/src/world_entities/power_ups/turret_power_up.h
r6424 r6512 19 19 virtual ~TurretPowerUp (); 20 20 21 virtual void loadParams(const TiXmlElement* root); 22 21 23 virtual void TurretPowerUp::collidesWith(WorldEntity* entity, const Vector& location); 22 24 virtual void tick(float dt); … … 28 30 private: 29 31 void init(); 30 void loadParams(const TiXmlElement* root);31 32 32 33 private: -
trunk/src/world_entities/power_ups/weapon_power_up.cc
r6424 r6512 57 57 void WeaponPowerUp::loadParams(const TiXmlElement* root) 58 58 { 59 static_cast<PowerUp*>(this)->loadParams(root);59 PowerUp::loadParams(root); 60 60 const TiXmlElement* elem = root->FirstChildElement("weapon"); 61 61 if(elem != NULL && (elem = elem->FirstChildElement()) != NULL) -
trunk/src/world_entities/power_ups/weapon_power_up.h
r6424 r6512 19 19 virtual ~WeaponPowerUp (); 20 20 21 virtual void loadParams(const TiXmlElement* root); 22 21 23 Weapon* getWeapon(); 22 24 void setWeaponClass(const char* name); … … 30 32 private: 31 33 void init(); 32 void loadParams(const TiXmlElement* root);33 34 private: 34 35 Weapon* weapon; -
trunk/src/world_entities/projectiles/bomb.cc
r6434 r6512 96 96 { 97 97 // all the clases this Entity is directly derived from must be called in this way, to load all settings. 98 static_cast<WorldEntity*>(this)->loadParams(root);98 Projectile::loadParams(root); 99 99 100 100 -
trunk/src/world_entities/projectiles/bomb.h
r6434 r6512 22 22 virtual ~Bomb(); 23 23 24 v oid loadParams(const TiXmlElement* root);24 virtual void loadParams(const TiXmlElement* root); 25 25 void init(); 26 26 -
trunk/src/world_entities/skybox.cc
r6498 r6512 58 58 void SkyBox::loadParams(const TiXmlElement* root) 59 59 { 60 static_cast<WorldEntity*>(this)->loadParams(root);60 WorldEntity::loadParams(root); 61 61 62 62 LoadParam(root, "Materialset", this, SkyBox, setTexture) -
trunk/src/world_entities/skybox.h
r6470 r6512 29 29 void preInit(); 30 30 31 v oid loadParams(const TiXmlElement* root);31 virtual void loadParams(const TiXmlElement* root); 32 32 33 33 void postInit(); -
trunk/src/world_entities/space_ships/helicopter.cc
r6443 r6512 190 190 void Helicopter::loadParams(const TiXmlElement* root) 191 191 { 192 static_cast<WorldEntity*>(this)->loadParams(root);192 WorldEntity::loadParams(root); 193 193 } 194 194 -
trunk/src/world_entities/space_ships/helicopter.h
r6443 r6512 22 22 23 23 void init(); 24 v oid loadParams(const TiXmlElement* root);24 virtual void loadParams(const TiXmlElement* root); 25 25 26 26 virtual void enter(); -
trunk/src/world_entities/space_ships/space_ship.cc
r6498 r6512 205 205 void SpaceShip::loadParams(const TiXmlElement* root) 206 206 { 207 static_cast<WorldEntity*>(this)->loadParams(root);207 WorldEntity::loadParams(root); 208 208 } 209 209 -
trunk/src/world_entities/space_ships/space_ship.h
r6443 r6512 26 26 27 27 void init(); 28 v oid loadParams(const TiXmlElement* root);28 virtual void loadParams(const TiXmlElement* root); 29 29 30 30 virtual void enter(); -
trunk/src/world_entities/spawning_point.cc
r6424 r6512 71 71 { 72 72 /* let the world entity its stuff first */ 73 static_cast<WorldEntity*>(this)->loadParams(root);73 WorldEntity::loadParams(root); 74 74 75 75 /* now load the frequency */ -
trunk/src/world_entities/spawning_point.h
r6139 r6512 22 22 void init(); 23 23 24 v oid loadParams(const TiXmlElement* root);24 virtual void loadParams(const TiXmlElement* root); 25 25 26 26 /** sets the entity that is going to be spawned by this point @param classID: the id from the class_id.h file */ -
trunk/src/world_entities/terrain.cc
r6341 r6512 105 105 void Terrain::loadParams(const TiXmlElement* root) 106 106 { 107 static_cast<WorldEntity*>(this)->loadParams(root);107 WorldEntity::loadParams(root); 108 108 109 109 LoadParam(root, "vegetation", this, Terrain, loadVegetation) -
trunk/src/world_entities/terrain.h
r6341 r6512 36 36 37 37 void init(); 38 v oid loadParams(const TiXmlElement* root);38 virtual void loadParams(const TiXmlElement* root); 39 39 40 40 void loadVegetation(const char* vegetationFile); -
trunk/src/world_entities/test_entity.cc
r6281 r6512 67 67 void TestEntity::loadParams(const TiXmlElement* root) 68 68 { 69 static_cast<WorldEntity*>(this)->loadParams(root);69 WorldEntity::loadParams(root); 70 70 71 71 LoadParam(root, "md2animation", this, TestEntity, setAnim) -
trunk/src/world_entities/test_entity.h
r6281 r6512 22 22 23 23 void init(); 24 v oid loadParams(const TiXmlElement* root);24 virtual void loadParams(const TiXmlElement* root); 25 25 26 26 void setAnim(int animationIndex); -
trunk/src/world_entities/weapons/aim.cc
r6305 r6512 89 89 void Aim::loadParams(const TiXmlElement* root) 90 90 { 91 static_cast<PNode*>(this)->loadParams(root);91 PNode::loadParams(root); 92 92 93 93 LoadParam(root, "texture", this, Aim, setTexture) -
trunk/src/world_entities/weapons/aim.h
r5750 r6512 31 31 32 32 void init(); 33 v oid loadParams(const TiXmlElement* root);33 virtual void loadParams(const TiXmlElement* root); 34 34 35 35 inline void setSource(PNode* source) { this->source = source; }; -
trunk/src/world_entities/weapons/aiming_turret.cc
r6439 r6512 102 102 void AimingTurret::loadParams(const TiXmlElement* root) 103 103 { 104 static_cast<Weapon*>(this)->loadParams(root);104 Weapon::loadParams(root); 105 105 106 106 } -
trunk/src/world_entities/weapons/aiming_turret.h
r5750 r6512 20 20 21 21 void init(); 22 v oid loadParams(const TiXmlElement* root);22 virtual void loadParams(const TiXmlElement* root); 23 23 24 24 virtual void activate(); -
trunk/src/world_entities/weapons/cannon.cc
r6434 r6512 118 118 void Cannon::loadParams(const TiXmlElement* root) 119 119 { 120 121 120 Weapon::loadParams(root); 122 121 } 123 122 -
trunk/src/world_entities/weapons/cannon.h
r5750 r6512 18 18 19 19 void init(); 20 v oid loadParams(const TiXmlElement* root);20 virtual void loadParams(const TiXmlElement* root); 21 21 22 22 virtual void activate(); -
trunk/src/world_entities/weapons/crosshair.cc
r6162 r6512 82 82 void Crosshair::loadParams(const TiXmlElement* root) 83 83 { 84 static_cast<PNode*>(this)->loadParams(root);85 static_cast<EventListener*>(this)->loadParams(root);84 PNode::loadParams(root); 85 EventListener::loadParams(root); 86 86 87 87 LoadParam(root, "texture", this, Crosshair, setTexture) -
trunk/src/world_entities/weapons/crosshair.h
r5405 r6512 28 28 29 29 void init(); 30 v oid loadParams(const TiXmlElement* root);30 virtual void loadParams(const TiXmlElement* root); 31 31 32 32 void setSize(float size); -
trunk/src/world_entities/weapons/targeting_turret.cc
r6439 r6512 103 103 void TargetingTurret::loadParams(const TiXmlElement* root) 104 104 { 105 static_cast<Weapon*>(this)->loadParams(root);105 Weapon::loadParams(root); 106 106 107 107 } -
trunk/src/world_entities/weapons/targeting_turret.h
r6426 r6512 20 20 21 21 void init(); 22 v oid loadParams(const TiXmlElement* root);22 virtual void loadParams(const TiXmlElement* root); 23 23 24 24 virtual void activate(); -
trunk/src/world_entities/weapons/test_gun.cc
r6434 r6512 139 139 void TestGun::loadParams(const TiXmlElement* root) 140 140 { 141 141 Weapon::loadParams(root); 142 142 143 143 } -
trunk/src/world_entities/weapons/test_gun.h
r5750 r6512 43 43 44 44 void init(); 45 v oid loadParams(const TiXmlElement* root);45 virtual void loadParams(const TiXmlElement* root); 46 46 47 47 virtual void activate(); -
trunk/src/world_entities/weapons/turret.cc
r6439 r6512 100 100 void Turret::loadParams(const TiXmlElement* root) 101 101 { 102 static_cast<Weapon*>(this)->loadParams(root);102 Weapon::loadParams(root); 103 103 104 104 } -
trunk/src/world_entities/weapons/turret.h
r6438 r6512 17 17 18 18 void init(); 19 v oid loadParams(const TiXmlElement* root);19 virtual void loadParams(const TiXmlElement* root); 20 20 21 21 virtual void activate(); -
trunk/src/world_entities/weapons/weapon.cc
r6445 r6512 111 111 void Weapon::loadParams(const TiXmlElement* root) 112 112 { 113 static_cast<WorldEntity*>(this)->loadParams(root);113 WorldEntity::loadParams(root); 114 114 115 115 LoadParam(root, "projectile", this, Weapon, setProjectileType) -
trunk/src/world_entities/weapons/weapon.h
r6445 r6512 86 86 87 87 void init(); 88 v oid loadParams(const TiXmlElement* root);88 virtual void loadParams(const TiXmlElement* root); 89 89 //////////////////// 90 90 -
trunk/src/world_entities/weapons/weapon_manager.cc
r6439 r6512 116 116 void WeaponManager::loadParams(const TiXmlElement* root) 117 117 { 118 static_cast<BaseObject*>(this)->loadParams(root);118 BaseObject::loadParams(root); 119 119 120 120 LoadParam(root, "slot-count", this, WeaponManager, setSlotCount) -
trunk/src/world_entities/weapons/weapon_manager.h
r6444 r6512 53 53 54 54 void init(); 55 v oid loadParams(const TiXmlElement* root);55 virtual void loadParams(const TiXmlElement* root); 56 56 void loadWeapons(const TiXmlElement* root); 57 57 -
trunk/src/world_entities/world_entity.cc
r6498 r6512 92 92 { 93 93 // Do the PNode loading stuff 94 static_cast<PNode*>(this)->loadParams(root);94 PNode::loadParams(root); 95 95 96 96 LoadParam(root, "md2texture", this, WorldEntity, loadMD2Texture) -
trunk/src/world_entities/world_entity.h
r6498 r6512 34 34 virtual ~WorldEntity (); 35 35 36 v oid loadParams(const TiXmlElement* root);36 virtual void loadParams(const TiXmlElement* root); 37 37 38 38 void loadModel(const char* fileName, float scaling = 1.0f, unsigned int modelNumber = 0);
Note: See TracChangeset
for help on using the changeset viewer.