Orxonox  0.0.5 Codename: Arcturus
TowerDefenseEnemy.h
Go to the documentation of this file.
1 //
2 // TowerDefenseEnemy.h
3 // Orxonox
4 //
5 // Created by Jonas Erb on 22.10.14.
6 
7 
8 
9 
10 
11 #ifndef Orxonox_Tower_h
12 #define Orxonox_Tower_h
13 
14 #include "TDCoordinate.h"
15 #include "gametypes/Deathmatch.h"
18 #include "util/Output.h"
19 #include "TowerDefense.h"
20 
21 namespace orxonox
22 {
30  {
31  public:
32  TowerDefenseEnemy(Context* context);
33  virtual ~TowerDefenseEnemy();
34 
35  //health gibt es unter: health_
36 
37  virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) override;
38 
39  private:
40  WeakPtr<TowerDefense> getGame();
43  bool once_;
44  };
45 
46 
47 
48 }
49 
50 #endif /* _TowerDefense_H__ */
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
See TowerDefenseReadme.txt for Information.
Definition: TowerDefenseEnemy.h:29
Shared library macros, enums, constants and forward declarations for the TowerDefense module ...
WeakPtr< TowerDefense > game
Definition: TowerDefenseEnemy.h:41
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
The SpaceShip is the principal entity through which the player interacts with the game...
Definition: SpaceShip.h:90
bool once_
Definition: TowerDefenseEnemy.h:43
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Defines the helper function orxout() and includes all necessary headers to use the output system...
Definition: Context.h:45
#define _TowerDefenseExport
Definition: TowerDefensePrereqs.h:58
GameType class for TowerDefense.
Definition: TowerDefense.h:48
TowerDefense * td
Definition: TowerDefenseEnemy.h:42