C# Класс FootballSimulation.FootballStrategies

Показать файл Открыть проект

Открытые методы

Метод Описание
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