Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 11, 2006, 4:18:14 PM (18 years ago)
Author:
manuel
Message:

moved pickup from spaceship to playable. playable can now pickup health and max-health powerups

File:
1 edited

Legend:

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

    r6424 r6487  
    1212
    1313typedef enum EnumParamPowerUpType {
    14   PARAM_SHIELD,
    15   PARAM_size
     14  POWERUP_PARAM_SHIELD,
     15  POWERUP_PARAM_MAX_SHIELD,
     16  POWERUP_PARAM_HEALTH,
     17  POWERUP_PARAM_MAX_HEALTH,
     18  POWERUP_PARAM_size
    1619} EnumParamPowerUpType;
    1720
     
    2326  virtual ~ParamPowerUp ();
    2427
    25   void setValue(int value);
    26   void setMaxValue(int value);
    27   void setMinValue(int value);
     28  void setValue(float value);
     29  void setMaxValue(float value);
     30  void setMinValue(float value);
    2831  void setType(const char* type);
    2932  EnumParamPowerUpType getType();
    30   int getValue();
     33  float getValue();
    3134
    3235  virtual int writeBytes(const byte* data, int length, int sender);
     
    4346  static const char* paramTypes[];
    4447  EnumParamPowerUpType type;
    45   int value;
    46   int max_value;
    47   int min_value;
     48  float value;
     49  float max_value;
     50  float min_value;
    4851};
    4952
Note: See TracChangeset for help on using the changeset viewer.