C# Class FootballSimulationApp.KeepawayTeam

Inheritance: FootballSimulation.Team
Datei anzeigen Open project: PurdueSIGAI/SoccerApp Class Usage Examples

Public Methods

Method Description
DrawDebugInfo ( ISimulation simulation, Graphics g ) : void
Execute ( ISimulation simulation ) : Kick
KeepawayTeam ( ReadOnlyCollection players, RectangleF goalBounds ) : System.Collections.Generic

Private Methods

Method Description
ClosestPlayerToPoint ( IEnumerable players, IPointMass target, float max, System.Numerics.Vector2 goalMiddle ) : IPointMass
DistanceBetween ( System.Numerics.Vector2 a, System.Numerics.Vector2 b ) : float
isOutsideOfField ( PointMass player, RectangleF field ) : bool

Method Details

DrawDebugInfo() public method

public DrawDebugInfo ( ISimulation simulation, Graphics g ) : void
simulation ISimulation
g System.Drawing.Graphics
return void

Execute() public method

public Execute ( ISimulation simulation ) : Kick
simulation ISimulation
return FootballSimulation.Kick

KeepawayTeam() public method

public KeepawayTeam ( ReadOnlyCollection players, RectangleF goalBounds ) : System.Collections.Generic
players ReadOnlyCollection
goalBounds System.Drawing.RectangleF
return System.Collections.Generic