Свойство | Тип | Описание | |
---|---|---|---|
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 |
public ConnectToServer ( string ip, string port ) : bool | ||
ip | string | |
port | string | |
Результат | bool |
public ConnectToServer ( string ip, string port, string playerName, string gameType ) : bool | ||
ip | string | |
port | string | |
playerName | string | |
gameType | string | |
Результат | bool |
public CreateLocalGame ( string gameName ) : AbstractGame | ||
gameName | string | |
Результат | AbstractGame |
public CreateLocalGame ( string gameName, string aiAlgorithm, object playerPosition ) : void | ||
gameName | string | |
aiAlgorithm | string | |
playerPosition | object | |
Результат | void |
public GetAI ( string aiType ) : IAIAlgorithm | ||
aiType | string | |
Результат | IAIAlgorithm |
public GetAvailableAIAlgorithms ( ) : IList |
||
Результат | IList |
public GetGamesInLobby ( string gameType ) : IList |
||
gameType | string | |
Результат | IList |
public JoinGame ( String opponentData ) : bool | ||
opponentData | String | |
Результат | bool |
public SendStep ( AbstractStep step ) : void | ||
step | AbstractStep | |
Результат | void |
public StartNetworkGame ( string gameType, PlayerType playerType ) : AbstractGame | ||
gameType | string | |
playerType | PlayerType | |
Результат | AbstractGame |
public StepHandler ( IState state ) : void | ||
state | IState | |
Результат | void |
public getGameGUI ( AbstractGame game ) : System.Windows.Controls.UserControl | ||
game | AbstractGame | |
Результат | System.Windows.Controls.UserControl |
public UserControl,System.Windows.Controls currentGameGUI | ||
Результат | System.Windows.Controls.UserControl |