shared_ptr<Action> Player::playCornerKick() { TTeamIndex ti = WM.getOurTeamIndex(); TPlayMode pm = WM.getPlayMode(); if ((TI_LEFT == ti && PM_CORNER_KICK_LEFT == pm) || (TI_RIGHT == ti && PM_CORNER_KICK_RIGHT == pm)) { return playOurCornerKick(); } else { return playOppCornerKick(); } }
void Player::playCornerKick() { ETeamSide ts = WorldModel::instance().getTeamSide(); EPlayMode pm = WorldModel::instance().getPlayMode(); if ( ( TS_LEFT == ts && PM_CORNER_KICK_LEFT == pm ) || ( TS_RIGHT == ts && PM_CORNER_KICK_RIGHT == pm ) ) { return playOurCornerKick(); } else { return playOppCornerKick(); } }