Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/new_class_id/src/world_entities/power_ups/turret_power_up.h @ 9715

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

renamed newclassid to classid and newobjectlist to objectlist

File size: 797 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  ObjectListDeclaration(TurretPowerUp);
16
17 public:
18  TurretPowerUp(const TiXmlElement* root = NULL);
19  virtual ~TurretPowerUp ();
20
21  virtual void loadParams(const TiXmlElement* root);
22
23  virtual void TurretPowerUp::collidesWith(WorldEntity* entity, const Vector& location);
24  virtual void tick(float dt);
25  virtual void draw() const;
26
27  private:
28   void init();
29
30  private:
31   Vector              rotation;
32   float               cycle;
33
34   Model*              sphereModel;
35   Material*           sphereMaterial;
36};
37
38#endif /* _TURRET_POWER_UP_H */
Note: See TracBrowser for help on using the repository browser.