Last change
on this file since 10904 was
10818,
checked in by muemart, 9 years ago
|
- Fixed some suspicious virtual function signatures
- Fixed some clang warnings (and errors in the last commit, forgot to mention that)
- Fix compilation without pch
- Hack "override" keyword support into Tolua++
|
-
Property svn:eol-style set to
native
|
File size:
1.1 KB
|
Rev | Line | |
---|
[10109] | 1 | // |
---|
| 2 | // TowerDefenseEnemy.h |
---|
| 3 | // Orxonox |
---|
| 4 | // |
---|
| 5 | // Created by Jonas Erb on 22.10.14. |
---|
| 6 | |
---|
| 7 | /** |
---|
| 8 | @brief |
---|
| 9 | See TowerDefenseReadme.txt for Information. |
---|
| 10 | |
---|
| 11 | @ingroup TowerDefense |
---|
| 12 | */ |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | #ifndef Orxonox_Tower_h |
---|
| 17 | #define Orxonox_Tower_h |
---|
| 18 | |
---|
| 19 | #include "TDCoordinate.h" |
---|
| 20 | #include "gametypes/Deathmatch.h" |
---|
| 21 | #include "towerdefense/TowerDefensePrereqs.h" |
---|
| 22 | #include "worldentities/pawns/SpaceShip.h" |
---|
| 23 | #include "util/Output.h" |
---|
[10159] | 24 | #include "TowerDefense.h" |
---|
[10109] | 25 | |
---|
| 26 | namespace orxonox |
---|
| 27 | { |
---|
| 28 | /* Class to give the TowerDefenseEnemy spaceships waypoints and |
---|
| 29 | * |
---|
| 30 | */ |
---|
[10246] | 31 | class _TowerDefenseExport TowerDefenseEnemy : public SpaceShip |
---|
| 32 | { |
---|
| 33 | public: |
---|
| 34 | TowerDefenseEnemy(Context* context); |
---|
[10159] | 35 | virtual ~TowerDefenseEnemy(); |
---|
[10109] | 36 | |
---|
| 37 | //health gibt es unter: health_ |
---|
| 38 | |
---|
[10817] | 39 | virtual void tick(float dt) override; |
---|
[10818] | 40 | virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) override; |
---|
[10126] | 41 | |
---|
[10246] | 42 | private: |
---|
[10629] | 43 | WeakPtr<TowerDefense> getGame(); |
---|
[10256] | 44 | WeakPtr<TowerDefense> game; |
---|
[10159] | 45 | TowerDefense* td; |
---|
| 46 | bool once_; |
---|
[10246] | 47 | }; |
---|
[10109] | 48 | |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | #endif /* _TowerDefense_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.