C# 클래스 FootballSimulation.Team

Represents a simulated team.
상속: ITeam
파일 보기 프로젝트 열기: PurdueSIGAI/Soccer 1 사용 예제들

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