Exemplo n.º 1
0
 shared_ptr<Action> Player::playGoalKick() {
     TTeamIndex ti = WM.getOurTeamIndex();
     TPlayMode pm = WM.getPlayMode();
     if ((TI_LEFT == ti && PM_GOAL_KICK_LEFT == pm)
             || (TI_RIGHT == ti && PM_GOAL_KICK_RIGHT == pm)) {
         return playOurGoalKick();
     } else {
         return playOppGoalKick();
     }
 }
Exemplo n.º 2
0
void Player::playGoalKick()
{
    ETeamSide ts = WorldModel::instance().getTeamSide();
    EPlayMode pm = WorldModel::instance().getPlayMode();
    if ( ( TS_LEFT == ts && PM_GOAL_KICK_LEFT == pm )
         || ( TS_RIGHT == ts && PM_GOAL_KICK_RIGHT == pm ) )
    {
        return playOurGoalKick();
    } else {
        return playOppGoalKick();
    }
}