Changeset 5873 in orxonox.OLD for branches/powerups
- Timestamp:
- Dec 2, 2005, 3:21:58 PM (19 years ago)
- Location:
- branches/powerups/src/world_entities/power_ups
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/powerups/src/world_entities/power_ups/power_up.cc
r5871 r5873 23 23 using namespace std; 24 24 25 26 27 PowerUp::PowerUp (PowerUpType type) 28 { 29 this->init(); 30 } 31 32 PowerUp::PowerUp(const TiXmlElement* root) 33 { 34 this->init(); 35 this->loadParams(root); 36 } 37 38 void PowerUp::init() { 39 this->setClassID(CL_POWER_UP, "PowerUp"); 40 this->type = type; 41 } 25 PowerUp::PowerUp() { } 42 26 43 27 PowerUp::~PowerUp () {} -
branches/powerups/src/world_entities/power_ups/power_up.h
r5871 r5873 9 9 #include "world_entity.h" 10 10 11 typedef enum PowerUpType12 {13 PWR_UP_NULL,14 PWR_UP_SHIELD,15 PWR_UP_WEAPON,16 } PowerUpType;17 18 11 class PowerUp : public WorldEntity { 19 12 20 13 public: 21 PowerUp(PowerUpType type = PWR_UP_NULL);22 PowerUp(const TiXmlElement* root);23 virtual ~PowerUp ();24 14 void loadParams(const TiXmlElement* root); 25 15 void collidesWith (WorldEntity* entity, const Vector& location); 26 16 27 pr ivate:28 PowerUp Type type;29 v oid init();17 protected: 18 PowerUp(); 19 virtual ~PowerUp (); 30 20 }; 31 21
Note: See TracChangeset
for help on using the changeset viewer.