C# 클래스 FootballSimulation.Simulation

Represents a simulation of an indoor football game.
상속: ISimulation
파일 보기 프로젝트 열기: PurdueSIGAI/Soccer 1 사용 예제들

공개 메소드들

메소드 설명
Simulate ( float time ) : void

Simulates one step of the football game.

Simulation ( ReadOnlyCollection teams, PointMass ball, RectangleF pitchBounds, float friction ) : System

Initializes a new instance of the Simulation class.

비공개 메소드들

메소드 설명
OnGoalScored ( Team scoringTeam ) : void
OnReset ( ) : void
ResolveBallDirection ( IEnumerable kicks ) : Vector2
SimulateBall ( float time, IEnumerable kicks ) : void
SimulatePlaying ( float time ) : void
SimulateResetting ( float time ) : void

메소드 상세

Simulate() 공개 메소드

Simulates one step of the football game.
public Simulate ( float time ) : void
time float The time step length.
리턴 void

Simulation() 공개 메소드

Initializes a new instance of the Simulation class.
public Simulation ( ReadOnlyCollection teams, PointMass ball, RectangleF pitchBounds, float friction ) : System
teams ReadOnlyCollection The teams to be played against each other.
ball PointMass The ball.
pitchBounds System.Drawing.RectangleF The pitch boundaries.
friction float The friction coefficient.
리턴 System