source:
orxonox.OLD/trunk/src/world_entities/power_ups/laser_power_up.h
@
10415
Last change on this file since 10415 was 9869, checked in by bensch, 18 years ago | |
---|---|
File size: 786 bytes |
Rev | Line | |
---|---|---|
[5433] | 1 | /*! |
[5458] | 2 | * @file laser_power_up.h |
[5433] | 3 | * @brief A class representing a PowerUp in the world. |
4 | */ | |
[2077] | 5 | |
[5458] | 6 | #ifndef _LASER_POWER_UP_H |
7 | #define _LASER_POWER_UP_H | |
[2077] | 8 | |
[5434] | 9 | #include "power_up.h" |
[2077] | 10 | |
[5511] | 11 | /* FORWARD DEFINITION */ |
12 | class Material; | |
13 | ||
[5458] | 14 | class LaserPowerUp : public PowerUp { |
[9869] | 15 | ObjectListDeclaration(LaserPowerUp); |
[2077] | 16 | |
17 | public: | |
[5458] | 18 | LaserPowerUp(); |
19 | LaserPowerUp(const TiXmlElement* root); | |
20 | virtual ~LaserPowerUp (); | |
[5433] | 21 | |
[6512] | 22 | virtual void loadParams(const TiXmlElement* root); |
23 | ||
24 | ||
[9869] | 25 | virtual void collidesWith(WorldEntity* entity, const Vector& location); |
[5435] | 26 | virtual void tick(float dt); |
[5500] | 27 | virtual void draw() const; |
[5435] | 28 | |
[5434] | 29 | private: |
30 | void init(); | |
[5435] | 31 | |
32 | private: | |
33 | Vector rotation; | |
34 | float cycle; | |
[5437] | 35 | |
36 | Model* sphereModel; | |
37 | Material* sphereMaterial; | |
[2077] | 38 | }; |
39 | ||
[5458] | 40 | #endif /* _LASER_POWER_UP_H */ |
Note: See TracBrowser
for help on using the repository browser.