Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10618 was 10618, checked in by bknecht, 17 years ago

merged cleanup into trunk (only improvements)

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