Exemple #1
0
 shared_ptr<Action> Player::playGoal() {
     TTeamIndex ti = WM.getOurTeamIndex();
     TPlayMode pm = WM.getPlayMode();
     if ((TI_LEFT == ti && PM_GOAL_LEFT == pm)
             || (TI_RIGHT == ti && PM_GOAL_RIGHT == pm)) {
         return playOurGoal();
     } else {
         return playOppGoal();
     }
 }
Exemple #2
0
void Player::playGoal()
{
    ETeamSide ts = WorldModel::instance().getTeamSide();
    EPlayMode pm = WorldModel::instance().getPlayMode();
    if ( ( TS_LEFT == ts && PM_Goal_Left == pm )
         || ( TS_RIGHT == ts && PM_Goal_Right == pm ) )
    {
        return playOurGoal();
    } else {
        return playOppGoal();
    }
}