Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 1.1 KB
RevLine 
[6113]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 {
[6547]14  POWERUP_PARAM_SHIELD,
15  POWERUP_PARAM_MAX_SHIELD,
16  POWERUP_PARAM_HEALTH,
17  POWERUP_PARAM_MAX_HEALTH,
18  POWERUP_PARAM_size
[6113]19} EnumParamPowerUpType;
20
21class ParamPowerUp : public PowerUp {
[9869]22  ObjectListDeclaration(ParamPowerUp);
[6113]23
24public:
[7065]25  ParamPowerUp(const TiXmlElement* root = NULL);
[6113]26  virtual ~ParamPowerUp ();
27
[6547]28  void setValue(float value);
29  void setMaxValue(float value);
30  void setMinValue(float value);
[7221]31  void setType(const std::string& type);
[6113]32  EnumParamPowerUpType getType();
[6547]33  float getValue();
[6113]34
35protected:
36  virtual void respawn();
37
38private:
39  void init();
[6512]40  virtual void loadParams(const TiXmlElement* root);
[6113]41
42private:
[7221]43  EnumParamPowerUpType    type;
44  float                   value;
45  float                   max_value;
46  float                   min_value;
47
48  static const char*      paramTypes[];
49
[6113]50};
51
52#endif /* _PARAM_POWER_UP_H */
Note: See TracBrowser for help on using the repository browser.