Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/power_ups/power_up.h @ 6416

Last change on this file since 6416 was 6282, checked in by bensch, 19 years ago

orxonox/trunk: merged the PowerUps back here

File size: 730 bytes
Line 
1/*!
2 * @file power_up.h
3 * @brief A class representing a PowerUp in the world.
4*/
5
6#ifndef _POWER_UP_H
7#define _POWER_UP_H
8
9#include "world_entity.h"
10
11class Material;
12
13typedef enum PowerUpRespawn {
14  RESPAWN_NONE,
15  RESPAWN_TIME,
16  RESPAWN_size
17} PowerUpRespawn;
18
19class PowerUp : public WorldEntity {
20
21public:
22  void loadParams(const TiXmlElement* root);
23  void collidesWith (WorldEntity* entity, const Vector& location);
24
25  virtual void draw () const;
26  void setRespawnType(const char* type);
27
28protected:
29  PowerUp(float r, float g, float b);
30  virtual ~PowerUp ();
31  virtual void respawn() {};
32
33private:
34  Material* sphereMaterial;
35  PowerUpRespawn respawnType;
36  static const char* respawnTypes[];
37};
38
39#endif /* _POWER_UP_H */
Note: See TracBrowser for help on using the repository browser.