Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 16, 2011, 4:25:28 PM (13 years ago)
Author:
jo
Message:

Rough adding of both concepts. Further work on the states is needed. (single player bots are inactive at the moment)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/formation/src/orxonox/controllers/HumanController.cc

    r8978 r8990  
    318318        {
    319319            switch (HumanController::localController_s->getMode()) {
    320               case NORMAL:
    321                 HumanController::localController_s->setMode(DEFEND);
    322                 orxout(message) <<"Mode: DEFEND "<< endl;
    323                 break;
    324               case DEFEND:
    325                 HumanController::localController_s->setMode(ATTACK);
    326                 orxout(message) <<"Mode: ATTACK "<< endl;
    327                 break;
    328               case ATTACK:
    329                 HumanController::localController_s->setMode(NORMAL);
    330                 orxout(message) <<"Mode: NORMAL "<< endl;
    331                 break;
     320                case NORMAL:
     321                    HumanController::localController_s->setMode(DEFEND);
     322                    orxout(message) <<"Mode: DEFEND "<< endl;
     323                    break;
     324                case DEFEND:
     325                    HumanController::localController_s->setMode(ATTACK);
     326                    orxout(message) <<"Mode: ATTACK "<< endl;
     327                    break;
     328                case ATTACK:
     329                    HumanController::localController_s->setMode(NORMAL);
     330                    orxout(message) <<"Mode: NORMAL "<< endl;
     331                    break;
     332                default: //catch all non-formation related states
     333                    break;
    332334            }
    333335        }
Note: See TracChangeset for help on using the changeset viewer.