C# 클래스 Client.Client.GameClient

상속: IClient
파일 보기 프로젝트 열기: porcellus/KomponensAlapuJatek

공개 프로퍼티들

프로퍼티 타입 설명
currentGame AbstractGame
currentGameGUI System.Windows.Controls.UserControl
currentPlayerType PlayerType
otherPlayerType PlayerType

공개 메소드들

메소드 설명
ConnectToServer ( string ip, string port ) : bool
ConnectToServer ( string ip, string port, string playerName, string gameType ) : bool
CreateLocalGame ( string gameName ) : AbstractGame
CreateLocalGame ( string gameName, string aiAlgorithm, object playerPosition ) : void
GetAI ( string aiType ) : IAIAlgorithm
GetAvailableAIAlgorithms ( ) : IList
GetAvailableGameTypes ( ) : IList
GetGamesInLobby ( string gameType ) : IList
JoinGame ( String opponentData ) : bool
SendStep ( AbstractStep step ) : void
StartNetworkGame ( string gameType, PlayerType playerType ) : AbstractGame
StartServer ( ) : void
StepHandler ( IState state ) : void
getGameGUI ( AbstractGame game ) : System.Windows.Controls.UserControl

비공개 메소드들

메소드 설명
ConnectionAccept ( object sender, Connector e ) : void
ConnectionRequest ( object sender, Connector e ) : void
OnStep ( object sender, Connector e ) : void

메소드 상세

ConnectToServer() 공개 메소드

public ConnectToServer ( string ip, string port ) : bool
ip string
port string
리턴 bool

ConnectToServer() 공개 메소드

public ConnectToServer ( string ip, string port, string playerName, string gameType ) : bool
ip string
port string
playerName string
gameType string
리턴 bool

CreateLocalGame() 공개 메소드

public CreateLocalGame ( string gameName ) : AbstractGame
gameName string
리턴 AbstractGame

CreateLocalGame() 공개 메소드

public CreateLocalGame ( string gameName, string aiAlgorithm, object playerPosition ) : void
gameName string
aiAlgorithm string
playerPosition object
리턴 void

GetAI() 공개 메소드

public GetAI ( string aiType ) : IAIAlgorithm
aiType string
리턴 IAIAlgorithm

GetAvailableAIAlgorithms() 공개 메소드

public GetAvailableAIAlgorithms ( ) : IList
리턴 IList

GetAvailableGameTypes() 공개 메소드

public GetAvailableGameTypes ( ) : IList
리턴 IList

GetGamesInLobby() 공개 메소드

public GetGamesInLobby ( string gameType ) : IList
gameType string
리턴 IList

JoinGame() 공개 메소드

public JoinGame ( String opponentData ) : bool
opponentData String
리턴 bool

SendStep() 공개 메소드

public SendStep ( AbstractStep step ) : void
step AbstractStep
리턴 void

StartNetworkGame() 공개 메소드

public StartNetworkGame ( string gameType, PlayerType playerType ) : AbstractGame
gameType string
playerType PlayerType
리턴 AbstractGame

StartServer() 공개 메소드

public StartServer ( ) : void
리턴 void

StepHandler() 공개 메소드

public StepHandler ( IState state ) : void
state IState
리턴 void

getGameGUI() 공개 메소드

public getGameGUI ( AbstractGame game ) : System.Windows.Controls.UserControl
game AbstractGame
리턴 System.Windows.Controls.UserControl

프로퍼티 상세

currentGame 공개적으로 프로퍼티

public AbstractGame currentGame
리턴 AbstractGame

currentGameGUI 공개적으로 프로퍼티

public UserControl,System.Windows.Controls currentGameGUI
리턴 System.Windows.Controls.UserControl

currentPlayerType 공개적으로 프로퍼티

public PlayerType currentPlayerType
리턴 PlayerType

otherPlayerType 공개적으로 프로퍼티

public PlayerType otherPlayerType
리턴 PlayerType