C# Class SimpleSoccer.Net.SoccerPitch

A SoccerPitch is the main game object. It owns instances of two soccer teams, two goals, the playing area, the ball etc. This is the root class for all the game updates and renders etc
显示文件 Open project: soshimozi/SimpleSoccer.Net Class Usage Examples

Public Methods

Method Description
GetRegion ( int index ) : Region
Render ( Graphics g ) : void
SoccerPitch ( double width, double height ) : System
Update ( ) : void

Private Methods

Method Description
createRegions ( double width, double height ) : void

this instantiates the regions the players utilize to position themselves

Method Details

GetRegion() public method

public GetRegion ( int index ) : Region
index int
return Region

Render() public method

public Render ( Graphics g ) : void
g System.Drawing.Graphics
return void

SoccerPitch() public method

public SoccerPitch ( double width, double height ) : System
width double
height double
return System

Update() public method

public Update ( ) : void
return void