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
RevLine 
[5433]1/*!
[5965]2 * @file weapon_power_up.h
[6107]3 * @brief A class representing a PowerUp modifying parameters.
[5433]4*/
[2077]5
[6107]6#ifndef _PARAM_POWER_UP_H
7#define _PARAM_POWER_UP_H
[2077]8
[5434]9#include "power_up.h"
[2077]10
[5511]11/* FORWARD DEFINITION */
12
[6107]13typedef enum EnumParamPowerUpType {
14  PARAM_SHIELD,
15  PARAM_size
16} EnumParamPowerUpType;
[2077]17
[6107]18class ParamPowerUp : public PowerUp {
19
[5965]20public:
[6107]21  ParamPowerUp();
22  ParamPowerUp(const TiXmlElement* root);
23  virtual ~ParamPowerUp ();
[5433]24
[6107]25  void setValue(int value);
26  void setType(EnumParamPowerUpType type)
[5435]27
[5988]28protected:
[6107]29  virtual void respawn();
[5988]30
[5965]31private:
32  void init();
33  void loadParams(const TiXmlElement* root);
[6107]34
[5973]35private:
[6107]36  static const char* paramTypes;
37  EnumParamPowerUpType type;
38  int value;
39  int max_value;
40  int min_value;
[2077]41};
42
[6107]43#endif /* _PARAM_POWER_UP_H */
Note: See TracBrowser for help on using the repository browser.