int BehaviorGoalie::processSaveBall() { /*if (getBodyStatus().getPan() < 0) { getBodyAction().GoaliMoveLeft(); } else { getBodyAction().GoaliMoveRight(); } mIsBallSeenStable = false;*/ changeRole(ROLE_STRIKER); return SEARCH_BALL; }
void newg_attrChanged( NewGameCtx* ngc, NewGameAttr attr, NGValue value ) { XP_Bool changed = XP_FALSE; if ( attr == NG_ATTR_NPLAYERS ) { if ( ngc->nPlayersShown != value.ng_u16 ) { ngc->nPlayersShown = value.ng_u16; ngc->changedNPlayers = XP_TRUE; changed = XP_TRUE; } #ifndef XWFEATURE_STANDALONE_ONLY } else if ( NG_ATTR_ROLE == attr ) { changed = changeRole( ngc, value.ng_role ); #endif } else { XP_ASSERT( 0 ); } if ( changed ) { considerEnable( ngc ); adjustAllRows( ngc, XP_FALSE ); } }