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(); } }
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(); } }