Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9869 was 9869, checked in by bensch, 17 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

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.