source:
orxonox.OLD/trunk/src/world_entities/power_ups/laser_power_up.h
@
7574
Last change on this file since 7574 was 6512, checked in by bensch, 19 years ago | |
---|---|
File size: 899 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 { |
[2077] | 15 | |
16 | public: | |
[5458] | 17 | LaserPowerUp(); |
18 | LaserPowerUp(const TiXmlElement* root); | |
19 | virtual ~LaserPowerUp (); | |
[5433] | 20 | |
[6512] | 21 | virtual void loadParams(const TiXmlElement* root); |
22 | ||
23 | ||
[5458] | 24 | virtual void LaserPowerUp::collidesWith(WorldEntity* entity, const Vector& location); |
[5435] | 25 | virtual void tick(float dt); |
[5500] | 26 | virtual void draw() const; |
[5435] | 27 | |
[6424] | 28 | virtual int writeBytes(const byte* data, int length, int sender); |
29 | virtual int readBytes(byte* data, int maxLength, int * reciever ); | |
30 | ||
[5434] | 31 | private: |
32 | void init(); | |
[5435] | 33 | |
34 | private: | |
35 | Vector rotation; | |
36 | float cycle; | |
[5437] | 37 | |
38 | Model* sphereModel; | |
39 | Material* sphereMaterial; | |
[2077] | 40 | }; |
41 | ||
[5458] | 42 | #endif /* _LASER_POWER_UP_H */ |
Note: See TracBrowser
for help on using the repository browser.