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 | ObjectListDeclaration(TurretPowerUp); |
---|
16 | |
---|
17 | public: |
---|
18 | TurretPowerUp(const TiXmlElement* root = NULL); |
---|
19 | virtual ~TurretPowerUp (); |
---|
20 | |
---|
21 | virtual void loadParams(const TiXmlElement* root); |
---|
22 | |
---|
23 | virtual void collidesWith(WorldEntity* entity, const Vector& location); |
---|
24 | virtual void tick(float dt); |
---|
25 | virtual void draw() const; |
---|
26 | |
---|
27 | private: |
---|
28 | void init(); |
---|
29 | |
---|
30 | private: |
---|
31 | Vector rotation; |
---|
32 | float cycle; |
---|
33 | |
---|
34 | Model* sphereModel; |
---|
35 | Material* sphereMaterial; |
---|
36 | }; |
---|
37 | |
---|
38 | #endif /* _TURRET_POWER_UP_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.