Method | Description | |
---|---|---|
Simulate ( float time ) : void |
Simulates one step of the football game.
|
|
Simulation ( ReadOnlyCollection |
Initializes a new instance of the Simulation class.
|
Method | Description | |
---|---|---|
OnGoalScored ( |
||
OnReset ( ) : void | ||
ResolveBallDirection ( IEnumerable |
||
SimulateBall ( float time, IEnumerable |
||
SimulatePlaying ( float time ) : void | ||
SimulateResetting ( float time ) : void |
public Simulate ( float time ) : void | ||
time | float | The time step length. |
return | void |
public Simulation ( ReadOnlyCollection |
||
teams | ReadOnlyCollection |
The teams to be played against each other. |
ball | The ball. | |
pitchBounds | The pitch boundaries. | |
friction | float | The friction coefficient. |
return | System |