Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2005, 3:44:23 PM (19 years ago)
Author:
manuel
Message:

some debugging

Location:
branches/powerups/src/world_entities/power_ups
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/powerups/src/world_entities/power_ups/param_power_up.cc

    r6107 r6109  
    1616#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
    1717
    18 #include "weapon_power_up.h"
     18#include "param_power_up.h"
    1919#include "factory.h"
    2020#include "state.h"
     
    2929
    3030CREATE_FACTORY(ParamPowerUp, CL_PARAM_POWER_UP);
     31
     32const char* ParamPowerUp::paramTypes[] = {
     33  "shield"
     34};
    3135
    3236ParamPowerUp::ParamPowerUp () : PowerUp(0.0, 0.0, 1.0)
     
    112116}
    113117
    114 const char* ParamPowerUp::paramTypes[] = {
    115   "shield"
    116 };
    117118
    118 
  • branches/powerups/src/world_entities/power_ups/param_power_up.h

    r6107 r6109  
    2424
    2525  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();
    2731
    2832protected:
     
    3438
    3539private:
    36   static const char* paramTypes;
     40  static const char* paramTypes[];
    3741  EnumParamPowerUpType type;
    3842  int value;
Note: See TracChangeset for help on using the changeset viewer.