- Timestamp:
- Dec 14, 2005, 3:44:23 PM (19 years ago)
- Location:
- branches/powerups/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/powerups/src/Makefile.am
r5965 r6109 80 80 world_entities/power_ups/laser_power_up.cc \ 81 81 world_entities/power_ups/weapon_power_up.cc \ 82 world_entities/power_ups/param_power_up.cc \ 82 83 world_entities/space_ships/space_ship.cc \ 83 84 subprojects/benchmark.cc -
branches/powerups/src/world_entities/power_ups/param_power_up.cc
r6107 r6109 16 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 17 17 18 #include " weapon_power_up.h"18 #include "param_power_up.h" 19 19 #include "factory.h" 20 20 #include "state.h" … … 29 29 30 30 CREATE_FACTORY(ParamPowerUp, CL_PARAM_POWER_UP); 31 32 const char* ParamPowerUp::paramTypes[] = { 33 "shield" 34 }; 31 35 32 36 ParamPowerUp::ParamPowerUp () : PowerUp(0.0, 0.0, 1.0) … … 112 116 } 113 117 114 const char* ParamPowerUp::paramTypes[] = {115 "shield"116 };117 118 118 -
branches/powerups/src/world_entities/power_ups/param_power_up.h
r6107 r6109 24 24 25 25 void setValue(int value); 26 void setType(EnumParamPowerUpType type) 26 void setMaxValue(int value); 27 void setMinValue(int value); 28 void setType(const char* type); 29 EnumParamPowerUpType getType(); 30 int getValue(); 27 31 28 32 protected: … … 34 38 35 39 private: 36 static const char* paramTypes ;40 static const char* paramTypes[]; 37 41 EnumParamPowerUpType type; 38 42 int value; -
branches/powerups/src/world_entities/space_ships/space_ship.cc
r6107 r6109 34 34 35 35 #include "power_ups/weapon_power_up.h" 36 #include "power_ups/param_power_up.h" 36 37 37 38 #include "graphics_engine.h" … … 428 429 } 429 430 else if(powerUp->isA(CL_PARAM_POWER_UP)) { 430 431 ParamPowerUp* ppu = dynamic_cast<ParamPowerUp*>(powerUp); 432 switch(ppu->getType()) { 433 case PARAM_SHIELD: 434 break; 435 } 431 436 } 432 437 return false;
Note: See TracChangeset
for help on using the changeset viewer.