- Timestamp:
- Dec 16, 2011, 4:25:28 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/formation/src/orxonox/controllers/HumanController.cc
r8978 r8990 318 318 { 319 319 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; 332 334 } 333 335 }
Note: See TracChangeset
for help on using the changeset viewer.