Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: loadParams is now virtual.
ALL THE CLASSES HAVE TO CALL

SuperClass::loadParams(root);

isntead of:
static_cast<SuperClass*>(this)→loadParams(root);

which was quite stupid anyways

File size: 907 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
[6512]21  virtual void loadParams(const TiXmlElement* root);
22
[5435]23  virtual void TurretPowerUp::collidesWith(WorldEntity* entity, const Vector& location);
24  virtual void tick(float dt);
[5500]25  virtual void draw() const;
[5435]26
[6424]27  virtual int writeBytes(const byte* data, int length, int sender);
28  virtual int readBytes(byte* data, int maxLength, int * reciever );
29
[5434]30  private:
31   void init();
[5435]32
33  private:
34   Vector              rotation;
35   float               cycle;
[5437]36
37   Model*              sphereModel;
38   Material*           sphereMaterial;
[2077]39};
40
[5434]41#endif /* _TURRET_POWER_UP_H */
Note: See TracBrowser for help on using the repository browser.