Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/powerups/src/world_entities/power_ups/param_power_up.h @ 6107

Last change on this file since 6107 was 6107, checked in by manuel, 18 years ago

implemented param_power_up.
started some powerup respawn possibilities
powerups don't display yet!

File size: 758 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 setType(EnumParamPowerUpType type)
27
28protected:
29  virtual void respawn();
30
31private:
32  void init();
33  void loadParams(const TiXmlElement* root);
34
35private:
36  static const char* paramTypes;
37  EnumParamPowerUpType type;
38  int value;
39  int max_value;
40  int min_value;
41};
42
43#endif /* _PARAM_POWER_UP_H */
Note: See TracBrowser for help on using the repository browser.