Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

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

File size: 752 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 LaserPowerUp::collidesWith(WorldEntity* entity, const Vector& location);
22  virtual void tick(float dt);
23  virtual void draw() const;
24
25  private:
26   void init();
27   void loadParams(const TiXmlElement* root);
28
29  private:
30   Vector              rotation;
31   float               cycle;
32
33   Model*              sphereModel;
34   Material*           sphereMaterial;
35};
36
37#endif /* _LASER_POWER_UP_H */
Note: See TracBrowser for help on using the repository browser.