Changeset 6512 in orxonox.OLD for trunk/src/world_entities/power_ups
- Timestamp:
- Jan 17, 2006, 10:01:07 PM (19 years ago)
- Location:
- trunk/src/world_entities/power_ups
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note: See TracChangeset
for help on using the changeset viewer.