C# Class Client.Client.GameClient

Inheritance: IClient
Show file Open project: porcellus/KomponensAlapuJatek

Public Properties

Property Type Description
currentGame AbstractGame
currentGameGUI System.Windows.Controls.UserControl
currentPlayerType PlayerType
otherPlayerType PlayerType

Public Methods

Method Description
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

Private Methods

Method Description
ConnectionAccept ( object sender, Connector e ) : void
ConnectionRequest ( object sender, Connector e ) : void
OnStep ( object sender, Connector e ) : void

Method Details

ConnectToServer() public method

public ConnectToServer ( string ip, string port ) : bool
ip string
port string
return bool

ConnectToServer() public method

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

CreateLocalGame() public method

public CreateLocalGame ( string gameName ) : AbstractGame
gameName string
return AbstractGame

CreateLocalGame() public method

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

GetAI() public method

public GetAI ( string aiType ) : IAIAlgorithm
aiType string
return IAIAlgorithm

GetAvailableAIAlgorithms() public method

public GetAvailableAIAlgorithms ( ) : IList
return IList

GetAvailableGameTypes() public method

public GetAvailableGameTypes ( ) : IList
return IList

GetGamesInLobby() public method

public GetGamesInLobby ( string gameType ) : IList
gameType string
return IList

JoinGame() public method

public JoinGame ( String opponentData ) : bool
opponentData String
return bool

SendStep() public method

public SendStep ( AbstractStep step ) : void
step AbstractStep
return void

StartNetworkGame() public method

public StartNetworkGame ( string gameType, PlayerType playerType ) : AbstractGame
gameType string
playerType PlayerType
return AbstractGame

StartServer() public method

public StartServer ( ) : void
return void

StepHandler() public method

public StepHandler ( IState state ) : void
state IState
return void

getGameGUI() public method

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

Property Details

currentGame public property

public AbstractGame currentGame
return AbstractGame

currentGameGUI public property

public UserControl,System.Windows.Controls currentGameGUI
return System.Windows.Controls.UserControl

currentPlayerType public property

public PlayerType currentPlayerType
return PlayerType

otherPlayerType public property

public PlayerType otherPlayerType
return PlayerType