Changeset 6110 in orxonox.OLD
- Timestamp:
- Dec 14, 2005, 4:02:12 PM (19 years ago)
- Location:
- branches/powerups/src/world_entities/power_ups
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/powerups/src/world_entities/power_ups/param_power_up.cc
r6109 r6110 34 34 }; 35 35 36 ParamPowerUp::ParamPowerUp () : PowerUp(0.0, 0.0, 1.0)36 ParamPowerUp::ParamPowerUp () : PowerUp(0.0, 1.0, 0.0) 37 37 { 38 38 this->init(); 39 39 } 40 40 41 ParamPowerUp::ParamPowerUp(const TiXmlElement* root) : PowerUp(0.0, 0.0, 1.0)41 ParamPowerUp::ParamPowerUp(const TiXmlElement* root) : PowerUp(0.0, 1.0, 0.0) 42 42 { 43 43 this->init(); -
branches/powerups/src/world_entities/power_ups/power_up.cc
r6107 r6110 23 23 using namespace std; 24 24 25 Model* PowerUp::sphereModel = new PrimitiveModel(PRIM_SPHERE, 7, 5);25 Model* PowerUp::sphereModel = NULL; 26 26 27 27 PowerUp::PowerUp(float r, float g, float b) 28 28 { 29 if(!PowerUp::sphereModel) { 30 PowerUp::sphereModel = new PrimitiveModel(PRIM_SPHERE, 7, 5); 31 } 29 32 this->sphereMaterial = new Material; 30 33 this->sphereMaterial->setTransparency(.1); -
branches/powerups/src/world_entities/power_ups/weapon_power_up.cc
r6107 r6110 30 30 CREATE_FACTORY(WeaponPowerUp, CL_WEAPON_POWER_UP); 31 31 32 WeaponPowerUp::WeaponPowerUp () : PowerUp( 0.0, 1.0, 0.0)32 WeaponPowerUp::WeaponPowerUp () : PowerUp(1.0, 1.0, 0.0) 33 33 { 34 34 this->init(); 35 35 } 36 36 37 WeaponPowerUp::WeaponPowerUp(const TiXmlElement* root) : PowerUp( 0.0, 1.0, 0.0)37 WeaponPowerUp::WeaponPowerUp(const TiXmlElement* root) : PowerUp(1.0, 1.0, 0.0) 38 38 { 39 39 this->init();
Note: See TracChangeset
for help on using the changeset viewer.