- Timestamp:
- Dec 5, 2018, 11:54:14 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc
r12145 r12150 80 80 { 81 81 this->target_province->setTroops(this->target_province->getTroops()+1); 82 this->reinforcements -= 1; 82 83 orxout()<<"Province "<<this->target_province->getID()<<" owned by Player "<<this->target_province->getOwner_ID()<<" troops: "<<this->target_province->getTroops()<<endl; 83 84 } … … 89 90 90 91 if (checkMove(ATTACK)) 92 91 93 { 94 orxout()<<"Attack move check returned valid"<<endl; 92 95 while ((this->origin_province->getTroops() > 1) && (this->target_province->getTroops() > 0)) //still troops available 93 96 { … … 199 202 this->origin_province->setTroops(1); 200 203 } 204 }else{ 205 orxout()<<"Attack move check returned false"<<endl; 201 206 } 202 207 … … 337 342 return b; 338 343 } 344 345 void WagnisPlayer::setActive(bool b){ 346 this->is_active = b; 347 if(b == true) orxout()<<"Player "<<this->Player_ID<<"\'s turn"<<endl; 348 } 349 350 bool WagnisPlayer::isActive() const { 351 return this->is_active; 352 } 339 353 }
Note: See TracChangeset
for help on using the changeset viewer.