- Timestamp:
- Dec 5, 2018, 7:51:11 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc
r12150 r12160 47 47 this->province_selection_changed = true; 48 48 }else{ 49 if(this->origin_province != nullptr) this->origin_province->dehighlight(); 49 50 this->origin_province = prov; 51 this->origin_province->highlight(); 50 52 this->province_selection_changed = true; 51 53 } … … 82 84 this->reinforcements -= 1; 83 85 orxout()<<"Province "<<this->target_province->getID()<<" owned by Player "<<this->target_province->getOwner_ID()<<" troops: "<<this->target_province->getTroops()<<endl; 86 if(reinforcements == 0) master->playerFinishedStageCallback(this); 84 87 } 85 88 } … … 351 354 return this->is_active; 352 355 } 356 357 //Resets the two province pointers and dehighlights them. 358 void WagnisPlayer::resetProvinceSelection(){ 359 360 if(this->origin_province != nullptr)this->origin_province->dehighlight(); 361 if(this->target_province != nullptr)this->target_province->dehighlight(); 362 this->origin_province = nullptr; 363 this->target_province = nullptr; 364 } 353 365 }
Note: See TracChangeset
for help on using the changeset viewer.