Orxonox  0.0.5 Codename: Arcturus
TowerDefenseTower.h
Go to the documentation of this file.
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 #ifndef Orxonox_TowerDefenseTower_h
11 #define Orxonox_TowerDefenseTower_h
12 
14 #include "objects/Turret.h"
15 
16 
17 namespace orxonox
18 {
26  {
27  public:
28  TowerDefenseTower(Context* context);
29  virtual ~TowerDefenseTower() {};
30 
31  // Maybe later override these to move TowerDefenseTowers with cursor keys
32  /*
33  virtual void moveFrontBack(const Vector2& value);
34  virtual void moveRightLeft(const Vector2& value);
35  */
36 
37  // Overriding these to stop TowerDefenseTowers from spasing out
38  //void setOrientation(const Quaternion& orientation);
39  //virtual void rotateYaw(const Vector2& value);
40  //virtual void rotatePitch(const Vector2& value);
41  //virtual void rotateRoll(const Vector2& value);
42  virtual bool upgradeTower();
43 
44 
45  void setGame(TowerDefense* Towerdefense)
46  { assert(Towerdefense); game_ = Towerdefense; }
47  private:
49  int upgrade;
50  };
51 }
52 
53 
54 #endif
Definition of the Turret class.
Shared library macros, enums, constants and forward declarations for the TowerDefense module ...
int upgrade
Definition: TowerDefenseTower.h:49
See TowerDefenseTowerDefenseReadme.txt for Information.
Definition: TowerDefenseTower.h:25
void setGame(TowerDefense *Towerdefense)
Definition: TowerDefenseTower.h:45
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
virtual ~TowerDefenseTower()
Definition: TowerDefenseTower.h:29
Definition: Context.h:45
Creates a turret with limited rotation.
Definition: Turret.h:58
#define _TowerDefenseExport
Definition: TowerDefensePrereqs.h:58
TowerDefense * game_
Definition: TowerDefenseTower.h:48
GameType class for TowerDefense.
Definition: TowerDefense.h:48