shared_ptr<Action> Player::playKickOff() { TTeamIndex ti = WM.getOurTeamIndex(); TPlayMode pm = WM.getPlayMode(); if ((TI_LEFT == ti && PM_KICK_OFF_LEFT == pm) || (TI_RIGHT == ti && PM_KICK_OFF_RIGHT == pm)) { return playOurKickOff(); } else { return playOppKickOff(); } }
void Player::playKickOff() { ETeamSide ts = WorldModel::instance().getTeamSide(); EPlayMode pm = WorldModel::instance().getPlayMode(); if ( ( TS_LEFT == ts && PM_KickOff_Left == pm ) || ( TS_RIGHT == ts && PM_KickOff_Right == pm ) ) { return playOurKickOff(); } else { return playOppKickOff(); } }