Changeset 9207 for code/branches/newlevel2012/src/modules/towerdefense
- Timestamp:
- May 18, 2012, 3:34:50 PM (13 years ago)
- Location:
- code/branches/newlevel2012/src/modules/towerdefense
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/newlevel2012/src/modules/towerdefense/CMakeLists.txt
r9204 r9207 4 4 TowerDefenseCenterpoint.cc 5 5 TowerDefenseHUDController.cc 6 TowerDefensePlayerStats.cc 6 7 ) 7 8 -
code/branches/newlevel2012/src/modules/towerdefense/TowerDefense.cc
r9180 r9207 77 77 #include "Tower.h" 78 78 #include "TowerDefenseCenterpoint.h" 79 #include "TowerDefensePlayerStats.h" 79 80 80 81 #include "worldentities/SpawnPoint.h" … … 100 101 101 102 this->setHUDTemplate("TowerDefenseHUD"); 103 104 this->stats_ = new TowerDefensePlayerStats(); 102 105 103 106 /* Temporary hack to allow the player to add towers */ -
code/branches/newlevel2012/src/modules/towerdefense/TowerDefense.h
r9204 r9207 41 41 #include "gametypes/Deathmatch.h" 42 42 43 44 45 43 namespace orxonox 46 44 { … … 80 78 // WeakPtr<TowerDefenseCenterpoint> center_; 81 79 TowerDefenseCenterpoint *center_; 80 81 /* handles stats */ 82 TowerDefensePlayerStats *stats_; 82 83 83 84 bool hasTower(int x, int y); -
code/branches/newlevel2012/src/modules/towerdefense/TowerDefenseHUDController.cc
r9204 r9207 37 37 CreateFactory(TowerDefenseHUDController); 38 38 39 const int kDefaultCredit = 200;40 41 39 TowerDefenseHUDController::TowerDefenseHUDController(BaseObject* creator) : OverlayText(creator) 42 40 { 43 41 RegisterObject(TowerDefenseHUDController); 44 45 this->credit_ = 200;46 this->waveNumber_ = 0;47 42 } 48 43 … … 55 50 { 56 51 SUPER(TowerDefenseHUDController, tick, dt); 57 58 credit_;59 52 } 60 53 -
code/branches/newlevel2012/src/modules/towerdefense/TowerDefenseHUDController.h
r9204 r9207 29 29 /** 30 30 @brief 31 This subclass of OverlayText is used to display the stats of the player in the HUD 31 32 32 33 @ingroup TowerDefense … … 54 55 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 55 56 virtual void changedOwner(); 56 57 inline int getCredit()58 { return credit_; }59 60 inline void setCredit(int credit)61 { credit_ = credit; }62 63 inline int getWaveNumber()64 { return waveNumber_; }65 66 inline void didLoadNextWave()67 { waveNumber_++; }68 69 70 71 private:72 int credit_;73 int waveNumber_;74 //int baseHealth_;75 57 }; 76 58 } -
code/branches/newlevel2012/src/modules/towerdefense/TowerDefensePrereqs.h
r9172 r9207 68 68 class Tower; 69 69 class TowerDefenseCenterpoint; 70 class TowerDefenseHUDController; 70 71 class TowerDefensePlayerStats; 71 72 }
Note: See TracChangeset
for help on using the changeset viewer.