コード例 #1
0
/*!

*/
void
Bhv_GoalieFreeKick::doWait( rcsc::PlayerAgent * agent )
{
    const rcsc::WorldModel & wm = agent->world();
    rcsc::Vector2D face_target( 0.0, 0.0 );

    if ( wm.self().pos().x > rcsc::ServerParam::i().ourPenaltyAreaLineX()
         - rcsc::ServerParam::i().ballSize()
         - wm.self().playerType().playerSize()
         - 0.5 )
    {
        face_target.assign( rcsc::ServerParam::i().ourPenaltyAreaLineX() - 1.0,
                            0.0 );
    }

    rcsc::Body_TurnToPoint( face_target ).execute( agent );
    agent->setNeckAction( new rcsc::Neck_ScanField() );
}
コード例 #2
0
void CControlDirectionBase::face_target(const CObject *obj,	u32 delay, float add_yaw) 
{
	face_target	(obj->Position(), delay, add_yaw);
}