Last change
on this file since 10521 was
10258,
checked in by landauf, 10 years ago
|
merged presentationHS14merge back to trunk
|
-
Property svn:eol-style set to
native
|
File size:
1.2 KB
|
Rev | Line | |
---|
[10091] | 1 | // |
---|
| 2 | // Tower.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 TowerDefenseReadme.txt for Information. |
---|
| 12 | |
---|
| 13 | @ingroup TowerDefense |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | #ifndef Orxonox_Tower_h |
---|
| 18 | #define Orxonox_Tower_h |
---|
| 19 | |
---|
| 20 | #include "towerdefense/TowerDefensePrereqs.h" |
---|
| 21 | #include "worldentities/pawns/SpaceShip.h" |
---|
| 22 | #include "worldentities/StaticEntity.h" |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | namespace orxonox |
---|
| 26 | { |
---|
| 27 | class _TowerDefenseExport TowerTurret : public StaticEntity |
---|
| 28 | { |
---|
| 29 | public: |
---|
| 30 | TowerTurret(Context* context); |
---|
| 31 | virtual ~TowerTurret() {}; |
---|
| 32 | |
---|
| 33 | // Maybe later override these to move towers 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 towers from spasing out |
---|
| 40 | void setOrientation(const Quaternion& orientation); |
---|
| 41 | //virtual void rotateYaw(const Vector2& value); |
---|
| 42 | //virtual void rotatePitch(const Vector2& value); |
---|
| 43 | //virtual void rotateRoll(const Vector2& value); |
---|
| 44 | |
---|
| 45 | void setGame(TowerDefense* towerdefense) |
---|
| 46 | { assert(towerdefense); game_ = towerdefense; } |
---|
| 47 | private: |
---|
| 48 | TowerDefense* game_; |
---|
| 49 | }; |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.