Last change
on this file since 8004 was
7954,
checked in by patrick, 18 years ago
|
trunk: merged the network branche back to trunk.
|
File size:
757 bytes
|
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(const TiXmlElement* root = NULL); |
---|
18 | virtual ~TurretPowerUp (); |
---|
19 | |
---|
20 | virtual void loadParams(const TiXmlElement* root); |
---|
21 | |
---|
22 | virtual void TurretPowerUp::collidesWith(WorldEntity* entity, const Vector& location); |
---|
23 | virtual void tick(float dt); |
---|
24 | virtual void draw() const; |
---|
25 | |
---|
26 | private: |
---|
27 | void init(); |
---|
28 | |
---|
29 | private: |
---|
30 | Vector rotation; |
---|
31 | float cycle; |
---|
32 | |
---|
33 | Model* sphereModel; |
---|
34 | Material* sphereMaterial; |
---|
35 | }; |
---|
36 | |
---|
37 | #endif /* _TURRET_POWER_UP_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.