C# Class FootballSimulation.Team

Represents a simulated team.
Inheritance: ITeam
Show file Open project: PurdueSIGAI/Soccer Class Usage Examples

Private Properties

Property Type Description
OnGoalScored void
Simulate void

Public Methods

Method Description
DrawDebugInfo ( ISimulation simulation, Graphics g ) : void

Draws debugging information.

Execute ( ISimulation simulation ) : Kick

Executes the team strategy.

Protected Methods

Method Description
Team ( ReadOnlyCollection players, RectangleF goalBounds ) : System

Initializes a new instance of the Team class with the specified strategy, players, and goal bounds.

Private Methods

Method Description
OnGoalScored ( ) : void
Simulate ( float time ) : void

Method Details

DrawDebugInfo() public method

Draws debugging information.
public DrawDebugInfo ( ISimulation simulation, Graphics g ) : void
simulation ISimulation The simulation in which the team is taking part.
g System.Drawing.Graphics The drawing surface.
return void

Execute() public abstract method

Executes the team strategy.
public abstract Execute ( ISimulation simulation ) : Kick
simulation ISimulation The simulation in which the team is taking part.
return Kick

Team() protected method

Initializes a new instance of the Team class with the specified strategy, players, and goal bounds.
protected Team ( ReadOnlyCollection players, RectangleF goalBounds ) : System
players ReadOnlyCollection The team players.
goalBounds System.Drawing.RectangleF The bounds of the goal.
return System