C# Класс 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
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetRegion ( int index ) : Region
Render ( Graphics g ) : void
SoccerPitch ( double width, double height ) : System
Update ( ) : void

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

Метод Описание
createRegions ( double width, double height ) : void

this instantiates the regions the players utilize to position themselves

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

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

public GetRegion ( int index ) : Region
index int
Результат Region

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

public Render ( Graphics g ) : void
g System.Drawing.Graphics
Результат void

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

public SoccerPitch ( double width, double height ) : System
width double
height double
Результат System

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

public Update ( ) : void
Результат void