- Timestamp:
- Nov 29, 2018, 7:22:46 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc
r12130 r12132 21 21 this->target_province = nullptr; 22 22 this->province_selection_changed = false; 23 this->gameStage = NOT_READY; 23 24 } 24 25 //Destructor … … 30 31 SUPER(WagnisPlayer, tick, dt); 31 32 32 ///////////TEST//////////////33 /**34 if(this->is_active){35 (master ->* ((orxonox::WagnisPlayer*)this)->orxonox::WagnisPlayer::finishedStageCallback) (this);36 }37 38 **/39 ///////////TEST//////////////40 41 42 43 33 if(this->is_active) 44 34 { 35 45 36 for(WagnisProvince* prov:this->gameBoard->provs){ 37 //orxout()<<"province health: "<<prov->getHealth()<<endl; 46 38 if(prov->getHealth() < prov->getMaxHealth()){ 39 //Check if next-player-button was hit 40 if(prov->getID() == 1000){ 41 master->playerFinishedStageCallback(this); 42 break; 43 } 44 //Check left/right click 47 45 if(prov->getHealth() <= prov->getMaxHealth()-1000.0f){ 48 46 this->target_province = prov; … … 52 50 this->province_selection_changed = true; 53 51 } 52 prov->setHealth(prov->getMaxHealth()); 54 53 } 55 54 }
Note: See TracChangeset
for help on using the changeset viewer.