C# Класс FootballSimulationApp.SimulationDrawingStrategy

Наследование: ISimulationDrawingStrategy
Показать файл Открыть проект Примеры использования класса

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

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

Приватные методы

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

Описание методов

Dispose() публичный Метод

Disposes the pens and brushes created by this class.
public Dispose ( ) : void
Результат void

Draw() публичный Метод

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.
Результат void

SimulationDrawingStrategy() публичный Метод

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.
Результат System