Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/power_ups/param_power_up.h @ 6113

Last change on this file since 6113 was 6113, checked in by bensch, 18 years ago

trunk: copied new power-ups

File size: 866 bytes
Line 
1/*!
2 * @file weapon_power_up.h
3 * @brief A class representing a PowerUp modifying parameters.
4*/
5
6#ifndef _PARAM_POWER_UP_H
7#define _PARAM_POWER_UP_H
8
9#include "power_up.h"
10
11/* FORWARD DEFINITION */
12
13typedef enum EnumParamPowerUpType {
14  PARAM_SHIELD,
15  PARAM_size
16} EnumParamPowerUpType;
17
18class ParamPowerUp : public PowerUp {
19
20public:
21  ParamPowerUp();
22  ParamPowerUp(const TiXmlElement* root);
23  virtual ~ParamPowerUp ();
24
25  void setValue(int value);
26  void setMaxValue(int value);
27  void setMinValue(int value);
28  void setType(const char* type);
29  EnumParamPowerUpType getType();
30  int getValue();
31
32protected:
33  virtual void respawn();
34
35private:
36  void init();
37  void loadParams(const TiXmlElement* root);
38
39private:
40  static const char* paramTypes[];
41  EnumParamPowerUpType type;
42  int value;
43  int max_value;
44  int min_value;
45};
46
47#endif /* _PARAM_POWER_UP_H */
Note: See TracBrowser for help on using the repository browser.