Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: more cleanup of the WorldEntity (includes rearanged)

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