Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 5, 2018, 9:26:18 AM (5 years ago)
Author:
kunzro
Message:

HUD fixed

File:
1 edited

Legend:

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

    r12135 r12136  
    3131
    3232        if(this->is_active)
    33         {
    34            
     33        {           
    3534            for(WagnisProvince* prov:this->gameBoard->provs){
    3635                //orxout()<<"province health: "<<prov->getHealth()<<endl;
     
    7675                    case REINFORCEMENT_STAGE:
    7776                    {
    78                         int i = reinforcementCounter(); //i tells how many troops player gets
    79                         while (i > 0)
     77                        if ( reinforcements > 0)
    8078                        {
    8179                            if (checkMove(SET_TROOPS))
     
    8381                                this->target_province->setTroops(this->target_province->getTroops()+1);
    8482                                orxout()<<"Province "<<this->target_province->getID()<<" owned by Player "<<this->target_province->getOwner_ID()<<" troops: "<<this->target_province->getTroops()<<endl;
    85                                 --i;
    8683                            }
    87                         }
    88 
    89                         master->playerFinishedStageCallback(this);   
     84                        }   
    9085                       
    9186                        break;
     
    359354    }
    360355
    361     int WagnisPlayer::reinforcementCounter() //calculates how many troops a player gets at beginning of his turn
     356    int WagnisPlayer::reinforcementCounter() //calculates and sets reeinforcements how many troops a player gets at beginning of his turn
    362357    {
    363358       
    364         return 10;
     359        reinforcements = 10;
     360        orxout()<<"derp"<<endl;
    365361        /*
    366362        int counter = 0;
Note: See TracChangeset for help on using the changeset viewer.