source:
orxonox.OLD/trunk/src/world_entities/power_ups/turret_power_up.h
@
7065
Last change on this file since 7065 was 7065, checked in by bensch, 18 years ago | |
---|---|
File size: 895 bytes |
Rev | Line | |
---|---|---|
[5433] | 1 | /*! |
[5434] | 2 | * @file turret_power_up.h |
[5433] | 3 | * @brief A class representing a PowerUp in the world. |
4 | */ | |
[2077] | 5 | |
[5434] | 6 | #ifndef _TURRET_POWER_UP_H |
7 | #define _TURRET_POWER_UP_H | |
[2077] | 8 | |
[5434] | 9 | #include "power_up.h" |
[2077] | 10 | |
[5511] | 11 | /* FORWARD DEFINITION */ |
12 | class Material; | |
13 | ||
[5434] | 14 | class TurretPowerUp : public PowerUp { |
[2077] | 15 | |
16 | public: | |
[7065] | 17 | TurretPowerUp(const TiXmlElement* root = NULL); |
[5434] | 18 | virtual ~TurretPowerUp (); |
[5433] | 19 | |
[6512] | 20 | virtual void loadParams(const TiXmlElement* root); |
21 | ||
[5435] | 22 | virtual void TurretPowerUp::collidesWith(WorldEntity* entity, const Vector& location); |
23 | virtual void tick(float dt); | |
[5500] | 24 | virtual void draw() const; |
[5435] | 25 | |
[6424] | 26 | virtual int writeBytes(const byte* data, int length, int sender); |
27 | virtual int readBytes(byte* data, int maxLength, int * reciever ); | |
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 | ||
[5434] | 40 | #endif /* _TURRET_POWER_UP_H */ |
Note: See TracBrowser
for help on using the repository browser.