Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/power_ups/turret_power_up.h @ 7065

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

powerups sounds when pickup

File size: 895 bytes
Line 
1/*!
2 * @file turret_power_up.h
3 * @brief A class representing a PowerUp in the world.
4*/
5
6#ifndef _TURRET_POWER_UP_H
7#define _TURRET_POWER_UP_H
8
9#include "power_up.h"
10
11/* FORWARD DEFINITION */
12class Material;
13
14class TurretPowerUp : public PowerUp {
15
16 public:
17  TurretPowerUp(const TiXmlElement* root = NULL);
18  virtual ~TurretPowerUp ();
19
20  virtual void loadParams(const TiXmlElement* root);
21
22  virtual void TurretPowerUp::collidesWith(WorldEntity* entity, const Vector& location);
23  virtual void tick(float dt);
24  virtual void draw() const;
25
26  virtual int writeBytes(const byte* data, int length, int sender);
27  virtual int readBytes(byte* data, int maxLength, int * reciever );
28
29  private:
30   void init();
31
32  private:
33   Vector              rotation;
34   float               cycle;
35
36   Model*              sphereModel;
37   Material*           sphereMaterial;
38};
39
40#endif /* _TURRET_POWER_UP_H */
Note: See TracBrowser for help on using the repository browser.