Last change
on this file since 10257 was
10248,
checked in by landauf, 10 years ago
|
merged towerdefenseHS14 (except some debug code)
|
-
Property svn:eol-style set to
native
|
File size:
1.3 KB
|
Line | |
---|
1 | // |
---|
2 | // TowerDefenseTower.h |
---|
3 | // Orxonox |
---|
4 | // |
---|
5 | // Created by Fabian Mentzer on 29.04.12. |
---|
6 | // Copyright (c) 2012 __MyCompanyName__. All rights reserved. |
---|
7 | // |
---|
8 | |
---|
9 | /** |
---|
10 | @brief |
---|
11 | See TowerDefenseTowerDefenseReadme.txt for Information. |
---|
12 | |
---|
13 | @ingroup TowerDefenseTowerDefense |
---|
14 | */ |
---|
15 | |
---|
16 | |
---|
17 | #ifndef Orxonox_TowerDefenseTower_h |
---|
18 | #define Orxonox_TowerDefenseTower_h |
---|
19 | |
---|
20 | #include "towerdefense/TowerDefensePrereqs.h" |
---|
21 | #include "worldentities/pawns/SpaceShip.h" |
---|
22 | |
---|
23 | |
---|
24 | namespace orxonox |
---|
25 | { |
---|
26 | class _TowerDefenseExport TowerDefenseTower : public Pawn |
---|
27 | { |
---|
28 | public: |
---|
29 | TowerDefenseTower(Context* context); |
---|
30 | virtual ~TowerDefenseTower() {}; |
---|
31 | |
---|
32 | // Maybe later override these to move TowerDefenseTowers with cursor keys |
---|
33 | /* |
---|
34 | virtual void moveFrontBack(const Vector2& value); |
---|
35 | virtual void moveRightLeft(const Vector2& value); |
---|
36 | */ |
---|
37 | |
---|
38 | // Overriding these to stop TowerDefenseTowers from spasing out |
---|
39 | void setOrientation(const Quaternion& orientation); |
---|
40 | virtual void rotateYaw(const Vector2& value); |
---|
41 | virtual void rotatePitch(const Vector2& value); |
---|
42 | virtual void rotateRoll(const Vector2& value); |
---|
43 | virtual bool upgradeTower(); |
---|
44 | |
---|
45 | |
---|
46 | void setGame(TowerDefense* Towerdefense) |
---|
47 | { assert(Towerdefense); game_ = Towerdefense; } |
---|
48 | private: |
---|
49 | TowerDefense* game_; |
---|
50 | int upgrade; |
---|
51 | }; |
---|
52 | } |
---|
53 | |
---|
54 | |
---|
55 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.