C# Класс FootballSimulation.Team

Represents a simulated team.
Наследование: ITeam
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
OnGoalScored void
Simulate void

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

Метод Описание
DrawDebugInfo ( ISimulation simulation, Graphics g ) : void

Draws debugging information.

Execute ( ISimulation simulation ) : Kick

Executes the team strategy.

Защищенные методы

Метод Описание
Team ( ReadOnlyCollection players, RectangleF goalBounds ) : System

Initializes a new instance of the Team class with the specified strategy, players, and goal bounds.

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

Метод Описание
OnGoalScored ( ) : void
Simulate ( float time ) : void

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

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

Draws debugging information.
public DrawDebugInfo ( ISimulation simulation, Graphics g ) : void
simulation ISimulation The simulation in which the team is taking part.
g System.Drawing.Graphics The drawing surface.
Результат void

Execute() публичный абстрактный Метод

Executes the team strategy.
public abstract Execute ( ISimulation simulation ) : Kick
simulation ISimulation The simulation in which the team is taking part.
Результат Kick

Team() защищенный Метод

Initializes a new instance of the Team class with the specified strategy, players, and goal bounds.
protected Team ( ReadOnlyCollection players, RectangleF goalBounds ) : System
players ReadOnlyCollection The team players.
goalBounds System.Drawing.RectangleF The bounds of the goal.
Результат System