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
Afficher le fichier Open project: soshimozi/SimpleSoccer.Net Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
createRegions ( double width, double height ) : void

this instantiates the regions the players utilize to position themselves

Method Details

GetRegion() public méthode

public GetRegion ( int index ) : Region
index int
Résultat Region

Render() public méthode

public Render ( Graphics g ) : void
g System.Drawing.Graphics
Résultat void

SoccerPitch() public méthode

public SoccerPitch ( double width, double height ) : System
width double
height double
Résultat System

Update() public méthode

public Update ( ) : void
Résultat void