Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/powerups/src/world_entities/power_ups/power_up.h @ 5871

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

declared extendable

File size: 578 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
11typedef enum PowerUpType
12{
13  PWR_UP_NULL,
14  PWR_UP_SHIELD,
15  PWR_UP_WEAPON,
16} PowerUpType;
17
18class PowerUp : public WorldEntity {
19
20public:
21  PowerUp(PowerUpType type = PWR_UP_NULL);
22  PowerUp(const TiXmlElement* root);
23  virtual ~PowerUp ();
24  void loadParams(const TiXmlElement* root);
25  void collidesWith (WorldEntity* entity, const Vector& location);
26
27private:
28  PowerUpType type;
29  void init();
30};
31
32#endif /* _POWER_UP_H */
Note: See TracBrowser for help on using the repository browser.