- Timestamp:
- Apr 29, 2012, 12:52:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/newlevel2012/src/modules/towerdefense/TowerDefense.cc
r9138 r9139 83 83 TowerDefense::~TowerDefense() 84 84 { 85 /* Part of a temporary hack to allow the player to add towers */ 85 86 if (this->isInitialized()) 86 87 { … … 92 93 void TowerDefense::setCenterpoint(TowerDefenseCenterpoint *centerpoint) 93 94 { 94 orxout() << "got a centerpoint..." << endl; 95 95 orxout() << "Centerpoint now set..." << endl; 96 96 this->center_ = centerpoint; 97 97 } … … 101 101 Deathmatch::start(); 102 102 103 orxout()<< "Adding towers for debug..." <<endl; 104 105 addTower(0,15); 106 addTower(15,0); 107 103 orxout() << "Adding towers for debug..." << endl; 104 105 // Mark corners 106 addTower(0,15); addTower(15,0); 107 108 // Mark diagonal line 108 109 for (int i = 0 ; i <= 15; i++) 109 {110 110 addTower(i,i); 111 } 112 113 orxout()<< "Done" <<endl; 111 112 orxout() << "Done" << endl; 114 113 115 114 ChatManager::message("Use the console command addTower x y to add towers"); 116 } 117 118 /* 119 void TowerDefense::end() 120 { 121 Deathmatch::end(); 122 123 std::string message("The match has ended."); 124 ChatManager::message(message); 125 } 126 */ 115 } 116 117 void TowerDefense::end() 118 { 119 Deathmatch::end(); 120 121 ChatManager::message("Match is over"); 122 } 123 127 124 128 125 void TowerDefense::addTower(int x, int y)
Note: See TracChangeset
for help on using the changeset viewer.