Line | |
---|
1 | /*! |
---|
2 | * @file turret_power_up.h |
---|
3 | * @brief A class representing a PowerUp in the world. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _TURRET_POWER_UP_H |
---|
7 | #define _TURRET_POWER_UP_H |
---|
8 | |
---|
9 | #include "power_up.h" |
---|
10 | |
---|
11 | /* FORWARD DEFINITION */ |
---|
12 | class Material; |
---|
13 | |
---|
14 | class TurretPowerUp : public PowerUp { |
---|
15 | |
---|
16 | public: |
---|
17 | TurretPowerUp(); |
---|
18 | TurretPowerUp(const TiXmlElement* root); |
---|
19 | virtual ~TurretPowerUp (); |
---|
20 | |
---|
21 | virtual void TurretPowerUp::collidesWith(WorldEntity* entity, const Vector& location); |
---|
22 | virtual void tick(float dt); |
---|
23 | virtual void draw() const; |
---|
24 | |
---|
25 | virtual int writeBytes(const byte* data, int length, int sender); |
---|
26 | virtual int readBytes(byte* data, int maxLength, int * reciever ); |
---|
27 | |
---|
28 | private: |
---|
29 | void init(); |
---|
30 | void loadParams(const TiXmlElement* root); |
---|
31 | |
---|
32 | private: |
---|
33 | Vector rotation; |
---|
34 | float cycle; |
---|
35 | |
---|
36 | Model* sphereModel; |
---|
37 | Material* sphereMaterial; |
---|
38 | }; |
---|
39 | |
---|
40 | #endif /* _TURRET_POWER_UP_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.