Last change
on this file since 10422 was
10335,
checked in by erbj, 10 years ago
|
tower don't shoot at the centerpoint anymore(because we shifted it by 2000,hack) and the tower and model are two different things now
|
-
Property svn:eol-style set to
native
|
File size:
1.4 KB
|
Rev | Line | |
---|
[10142] | 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" |
---|
[10319] | 22 | #include "objects/Turret.h" |
---|
[10142] | 23 | |
---|
| 24 | |
---|
| 25 | namespace orxonox |
---|
| 26 | { |
---|
[10319] | 27 | class _TowerDefenseExport TowerDefenseTower : public Turret |
---|
[10142] | 28 | { |
---|
| 29 | public: |
---|
| 30 | TowerDefenseTower(Context* context); |
---|
| 31 | virtual ~TowerDefenseTower() {}; |
---|
| 32 | |
---|
| 33 | // Maybe later override these to move TowerDefenseTowers with cursor keys |
---|
| 34 | /* |
---|
| 35 | virtual void moveFrontBack(const Vector2& value); |
---|
| 36 | virtual void moveRightLeft(const Vector2& value); |
---|
| 37 | */ |
---|
| 38 | |
---|
| 39 | // Overriding these to stop TowerDefenseTowers from spasing out |
---|
[10335] | 40 | /* |
---|
[10142] | 41 | void setOrientation(const Quaternion& orientation); |
---|
| 42 | virtual void rotateYaw(const Vector2& value); |
---|
| 43 | virtual void rotatePitch(const Vector2& value); |
---|
| 44 | virtual void rotateRoll(const Vector2& value); |
---|
[10335] | 45 | */ |
---|
[10158] | 46 | virtual bool upgradeTower(); |
---|
[10142] | 47 | |
---|
[10158] | 48 | |
---|
[10142] | 49 | void setGame(TowerDefense* Towerdefense) |
---|
| 50 | { assert(Towerdefense); game_ = Towerdefense; } |
---|
| 51 | private: |
---|
| 52 | TowerDefense* game_; |
---|
[10158] | 53 | int upgrade; |
---|
[10142] | 54 | }; |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.