C# 클래스 FootballSimulation.FootballStrategies

파일 보기 프로젝트 열기: PurdueSIGAI/Soccer

공개 메소드들

메소드 설명
ClosestPlayerToPoint ( IEnumerable players, IPointMass target, float max ) : IPointMass

GetOpenPlayers ( PointMass player, ITeam team, ITeam otherTeam, ISimulation simulation, float passingLaneWidth ) : IEnumerable

IsPlayerOpenForPass ( IPointMass player, IPointMass target, IEnumerable otherPlayers, float passingLaneWidth ) : bool

PassToPlayer ( IPointMass player, IPointMass target, IPointMass ball ) : Kick

SpreadOut ( PointMass player, IEnumerable allPlayers, RectangleF pitchBounds, float playerOverlapRadius, float edgeOverlapRadius ) : void

비공개 메소드들

메소드 설명
PointInTriangle ( Vector2 pt, Vector2 v1, Vector2 v2, Vector2 v3 ) : bool
Sign ( Vector2 p1, Vector2 p2, Vector2 p3 ) : float

메소드 상세

ClosestPlayerToPoint() 공개 정적인 메소드

public static ClosestPlayerToPoint ( IEnumerable players, IPointMass target, float max ) : IPointMass
players IEnumerable
target IPointMass
max float
리턴 IPointMass

GetOpenPlayers() 공개 정적인 메소드

public static GetOpenPlayers ( PointMass player, ITeam team, ITeam otherTeam, ISimulation simulation, float passingLaneWidth ) : IEnumerable
player PointMass
team ITeam
otherTeam ITeam
simulation ISimulation
passingLaneWidth float
리턴 IEnumerable

IsPlayerOpenForPass() 공개 정적인 메소드

public static IsPlayerOpenForPass ( IPointMass player, IPointMass target, IEnumerable otherPlayers, float passingLaneWidth ) : bool
player IPointMass
target IPointMass
otherPlayers IEnumerable
passingLaneWidth float
리턴 bool

PassToPlayer() 공개 정적인 메소드

public static PassToPlayer ( IPointMass player, IPointMass target, IPointMass ball ) : Kick
player IPointMass
target IPointMass
ball IPointMass
리턴 Kick

SpreadOut() 공개 정적인 메소드

public static SpreadOut ( PointMass player, IEnumerable allPlayers, RectangleF pitchBounds, float playerOverlapRadius, float edgeOverlapRadius ) : void
player PointMass
allPlayers IEnumerable
pitchBounds System.Drawing.RectangleF
playerOverlapRadius float
edgeOverlapRadius float
리턴 void