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
RevLine 
[5433]1/*!
[5039]2 * @file power_up.h
[5433]3 * @brief A class representing a PowerUp in the world.
4*/
[2077]5
[3224]6#ifndef _POWER_UP_H
7#define _POWER_UP_H
[2077]8
9#include "world_entity.h"
10
[5871]11typedef enum PowerUpType
12{
13  PWR_UP_NULL,
14  PWR_UP_SHIELD,
15  PWR_UP_WEAPON,
16} PowerUpType;
17
[5434]18class PowerUp : public WorldEntity {
[2077]19
[5871]20public:
21  PowerUp(PowerUpType type = PWR_UP_NULL);
22  PowerUp(const TiXmlElement* root);
[3544]23  virtual ~PowerUp ();
[5871]24  void loadParams(const TiXmlElement* root);
25  void collidesWith (WorldEntity* entity, const Vector& location);
26
27private:
28  PowerUpType type;
29  void init();
[2077]30};
31
[3224]32#endif /* _POWER_UP_H */
Note: See TracBrowser for help on using the repository browser.