Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: all the WorldEntities now have a const function to draw themselves

File size: 719 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
[5434]11class TurretPowerUp : public PowerUp {
[2077]12
13 public:
[5434]14  TurretPowerUp();
15  TurretPowerUp(const TiXmlElement* root);
16  virtual ~TurretPowerUp ();
[5433]17
[5435]18  virtual void TurretPowerUp::collidesWith(WorldEntity* entity, const Vector& location);
19  virtual void tick(float dt);
[5500]20  virtual void draw() const;
[5435]21
[5434]22  private:
23   void init();
24   void loadParams(const TiXmlElement* root);
[5435]25
26  private:
27   Vector              rotation;
28   float               cycle;
[5437]29
30   Model*              sphereModel;
31   Material*           sphereMaterial;
[2077]32};
33
[5434]34#endif /* _TURRET_POWER_UP_H */
Note: See TracBrowser for help on using the repository browser.