C# Class FootballSimulationApp.SimulationDrawingStrategy

Inheritance: ISimulationDrawingStrategy
Mostra file Open project: PurdueSIGAI/SoccerApp Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Disposes the pens and brushes created by this class.

Draw ( Graphics g, ISimulation s ) : void

Draws the simualation with the specified colors.

SimulationDrawingStrategy ( Color line, Color ball, IList teamColors, Font font ) : System

Initializes a new instance of this class with the specified colors used for drawing the game.

Private Methods

Method Description
DrawBall ( Graphics g, ISimulation s ) : void
DrawDebugInfo ( IPointMass pointMass, Brush brush, Font font, Graphics g ) : void
DrawPitch ( Graphics g, ISimulation s ) : void
DrawPointMass ( IPointMass pointMass, Pen pen, Brush brush, Graphics g ) : void
DrawTeams ( Graphics g, ISimulation s ) : void

Method Details

Dispose() public method

Disposes the pens and brushes created by this class.
public Dispose ( ) : void
return void

Draw() public method

Draws the simualation with the specified colors.
public Draw ( Graphics g, ISimulation s ) : void
g System.Drawing.Graphics The graphics context.
s ISimulation The simulation to draw.
return void

SimulationDrawingStrategy() public method

Initializes a new instance of this class with the specified colors used for drawing the game.
public SimulationDrawingStrategy ( Color line, Color ball, IList teamColors, Font font ) : System
line Color The line color.
ball Color The ball color.
teamColors IList /// The colors of each of the teams. Colors should be in order of the Teams property in /// . ///
font System.Drawing.Font Font to draw debug text.
return System