Line | |
---|
1 | /*! |
---|
2 | * @file cannon.h |
---|
3 | * a weapon that is fix on top of the player to fire heavy weaponary. |
---|
4 | */ |
---|
5 | |
---|
6 | |
---|
7 | #ifndef _CANNON_H |
---|
8 | #define _CANNON_H |
---|
9 | |
---|
10 | #include "weapon.h" |
---|
11 | |
---|
12 | class Cannon : public Weapon |
---|
13 | { |
---|
14 | ObjectListDeclaration(Cannon); |
---|
15 | public: |
---|
16 | Cannon (); |
---|
17 | Cannon (const TiXmlElement* root); |
---|
18 | virtual ~Cannon (); |
---|
19 | |
---|
20 | void init(); |
---|
21 | virtual void loadParams(const TiXmlElement* root); |
---|
22 | |
---|
23 | virtual void activate(); |
---|
24 | virtual void deactivate(); |
---|
25 | |
---|
26 | virtual void fire(); |
---|
27 | |
---|
28 | virtual void draw() const; |
---|
29 | |
---|
30 | private: |
---|
31 | // PNode* objectComponent1; //<! the gun is made of multiple parts, these PNodes represent their location and orientation |
---|
32 | }; |
---|
33 | #endif /* _CANNON_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.