Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/power_ups/laser_power_up.h @ 6512

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