C# 클래스 MBC.Core.Game.UserMatch

A one-round match that uses the standard rules of battleship with a User verus a Bot.
상속: MatchCore
파일 보기 프로젝트 열기: aiclub/Mohawk_Battleship 1 사용 예제들

공개 메소드들

메소드 설명
AddUser ( Player user ) : void

To set the User as a player of the match.

ComputerTurn ( ) : void

Computer begins their turn.

Play ( ) : void

Starts a one round match.

Restart ( ) : void

To restart the match.

UserMatch ( Configuration conf ) : System

Constructs a match with a specific configuration.

UserShoot ( Shot shot ) : void

Starts the Users turn, shots and ends the turn.

보호된 메소드들

메소드 설명
PlayLogic ( ) : bool

비공개 메소드들

메소드 설명
HandleAddPlayer ( Event ev ) : void
HandleEndTurn ( Event ev ) : void
HandleRoundBegin ( Event ev ) : void
HandleShipDestroyed ( Event ev ) : void
HandleShipMove ( Event ev ) : void
HandleShot ( Event ev ) : void
HandleWinner ( Event ev ) : void

메소드 상세

AddUser() 공개 메소드

To set the User as a player of the match.
public AddUser ( Player user ) : void
user MBC.Shared.Entities.Player User controller
리턴 void

ComputerTurn() 공개 메소드

Computer begins their turn.
public ComputerTurn ( ) : void
리턴 void

Play() 공개 메소드

Starts a one round match.
public Play ( ) : void
리턴 void

PlayLogic() 보호된 메소드

protected PlayLogic ( ) : bool
리턴 bool

Restart() 공개 메소드

To restart the match.
public Restart ( ) : void
리턴 void

UserMatch() 공개 메소드

Constructs a match with a specific configuration.
public UserMatch ( Configuration conf ) : System
conf Configuration Configuration Information
리턴 System

UserShoot() 공개 메소드

Starts the Users turn, shots and ends the turn.
public UserShoot ( Shot shot ) : void
shot Shot
리턴 void