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