Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2018, 4:08:26 PM (5 years ago)
Author:
stadlero
Message:

Wagnis now progresses through stages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc

    r12132 r12133  
    4040                    if(prov->getID() == 1000){
    4141                        master->playerFinishedStageCallback(this);
     42                        prov->setHealth(prov->getMaxHealth());
    4243                        break;
    4344                    }
     
    6162                    case CHOOSE_PROVINCE_STAGE:
    6263                    {   
    63                         if (checkMove(SET_TROOPS_INITIAL))
     64                        if (checkMove(SET_TROOPS_INITIAL)){
    6465                            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
    6673                        break;
    6774                    }
     
    6976                    case REINFORCEMENT_STAGE:
    7077                    {
    71                         if (checkMove(SET_TROOPS))
     78                        if (checkMove(SET_TROOPS)){
    7279                            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                           
    7483                        break;
    7584                    }
Note: See TracChangeset for help on using the changeset viewer.