- Timestamp:
- Dec 2, 2018, 4:08:26 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc
r12132 r12133 40 40 if(prov->getID() == 1000){ 41 41 master->playerFinishedStageCallback(this); 42 prov->setHealth(prov->getMaxHealth()); 42 43 break; 43 44 } … … 61 62 case CHOOSE_PROVINCE_STAGE: 62 63 { 63 if (checkMove(SET_TROOPS_INITIAL)) 64 if (checkMove(SET_TROOPS_INITIAL)){ 64 65 this->target_province->owner_ID = this->Player_ID; 65 66 this->target_province->troops += 1; 67 orxout()<<"Province "<<this->target_province->ID<<" owned by Player "<<this->target_province->owner_ID<<" troops: "<<this->target_province->troops<<endl; 68 master->playerFinishedStageCallback(this); 69 }else{ 70 orxout()<<"Sorry, someone already owns this provice"<<endl; 71 } 72 66 73 break; 67 74 } … … 69 76 case REINFORCEMENT_STAGE: 70 77 { 71 if (checkMove(SET_TROOPS)) 78 if (checkMove(SET_TROOPS)){ 72 79 this->target_province->troops += 1; 73 80 orxout()<<"Province "<<this->target_province->ID<<" owned by Player "<<this->target_province->owner_ID<<" troops: "<<this->target_province->troops<<endl; 81 } 82 74 83 break; 75 84 }
Note: See TracChangeset
for help on using the changeset viewer.