Property | Type | Description | |
---|---|---|---|
currentGame | AbstractGame | ||
currentGameGUI | System.Windows.Controls.UserControl | ||
currentPlayerType | PlayerType | ||
otherPlayerType | PlayerType |
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 |
Method | Description | |
---|---|---|
ConnectionAccept ( object sender, Connector e ) : void | ||
ConnectionRequest ( object sender, Connector e ) : void | ||
OnStep ( object sender, Connector e ) : void |
public ConnectToServer ( string ip, string port ) : bool | ||
ip | string | |
port | string | |
return | bool |
public ConnectToServer ( string ip, string port, string playerName, string gameType ) : bool | ||
ip | string | |
port | string | |
playerName | string | |
gameType | string | |
return | bool |
public CreateLocalGame ( string gameName ) : AbstractGame | ||
gameName | string | |
return | AbstractGame |
public CreateLocalGame ( string gameName, string aiAlgorithm, object playerPosition ) : void | ||
gameName | string | |
aiAlgorithm | string | |
playerPosition | object | |
return | void |
public GetAI ( string aiType ) : IAIAlgorithm | ||
aiType | string | |
return | IAIAlgorithm |
public GetGamesInLobby ( string gameType ) : IList |
||
gameType | string | |
return | IList |
public JoinGame ( String opponentData ) : bool | ||
opponentData | String | |
return | bool |
public StartNetworkGame ( string gameType, PlayerType playerType ) : AbstractGame | ||
gameType | string | |
playerType | PlayerType | |
return | AbstractGame |
public getGameGUI ( AbstractGame game ) : System.Windows.Controls.UserControl | ||
game | AbstractGame | |
return | System.Windows.Controls.UserControl |
public UserControl,System.Windows.Controls currentGameGUI | ||
return | System.Windows.Controls.UserControl |