C# 클래스 FootballSimulationApp.SimulationDrawingStrategy

상속: ISimulationDrawingStrategy
파일 보기 프로젝트 열기: PurdueSIGAI/SoccerApp 1 사용 예제들

공개 메소드들

메소드 설명
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