- Timestamp:
- Dec 5, 2018, 9:26:18 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc
r12135 r12136 31 31 32 32 if(this->is_active) 33 { 34 33 { 35 34 for(WagnisProvince* prov:this->gameBoard->provs){ 36 35 //orxout()<<"province health: "<<prov->getHealth()<<endl; … … 76 75 case REINFORCEMENT_STAGE: 77 76 { 78 int i = reinforcementCounter(); //i tells how many troops player gets 79 while (i > 0) 77 if ( reinforcements > 0) 80 78 { 81 79 if (checkMove(SET_TROOPS)) … … 83 81 this->target_province->setTroops(this->target_province->getTroops()+1); 84 82 orxout()<<"Province "<<this->target_province->getID()<<" owned by Player "<<this->target_province->getOwner_ID()<<" troops: "<<this->target_province->getTroops()<<endl; 85 --i;86 83 } 87 } 88 89 master->playerFinishedStageCallback(this); 84 } 90 85 91 86 break; … … 359 354 } 360 355 361 int WagnisPlayer::reinforcementCounter() //calculates how many troops a player gets at beginning of his turn356 int WagnisPlayer::reinforcementCounter() //calculates and sets reeinforcements how many troops a player gets at beginning of his turn 362 357 { 363 358 364 return 10; 359 reinforcements = 10; 360 orxout()<<"derp"<<endl; 365 361 /* 366 362 int counter = 0;
Note: See TracChangeset
for help on using the changeset viewer.