C# Class Client.Client.GameClient

Inheritance: IClient
Afficher le fichier Open project: porcellus/KomponensAlapuJatek

Méthodes publiques

Свойство Type Description
currentGame AbstractGame
currentGameGUI System.Windows.Controls.UserControl
currentPlayerType PlayerType
otherPlayerType PlayerType

Méthodes publiques

Méthode 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

Méthode Description
ConnectionAccept ( object sender, Connector e ) : void
ConnectionRequest ( object sender, Connector e ) : void
OnStep ( object sender, Connector e ) : void

Method Details

ConnectToServer() public méthode

public ConnectToServer ( string ip, string port ) : bool
ip string
port string
Résultat bool

ConnectToServer() public méthode

public ConnectToServer ( string ip, string port, string playerName, string gameType ) : bool
ip string
port string
playerName string
gameType string
Résultat bool

CreateLocalGame() public méthode

public CreateLocalGame ( string gameName ) : AbstractGame
gameName string
Résultat AbstractGame

CreateLocalGame() public méthode

public CreateLocalGame ( string gameName, string aiAlgorithm, object playerPosition ) : void
gameName string
aiAlgorithm string
playerPosition object
Résultat void

GetAI() public méthode

public GetAI ( string aiType ) : IAIAlgorithm
aiType string
Résultat IAIAlgorithm

GetAvailableAIAlgorithms() public méthode

public GetAvailableAIAlgorithms ( ) : IList
Résultat IList

GetAvailableGameTypes() public méthode

public GetAvailableGameTypes ( ) : IList
Résultat IList

GetGamesInLobby() public méthode

public GetGamesInLobby ( string gameType ) : IList
gameType string
Résultat IList

JoinGame() public méthode

public JoinGame ( String opponentData ) : bool
opponentData String
Résultat bool

SendStep() public méthode

public SendStep ( AbstractStep step ) : void
step AbstractStep
Résultat void

StartNetworkGame() public méthode

public StartNetworkGame ( string gameType, PlayerType playerType ) : AbstractGame
gameType string
playerType PlayerType
Résultat AbstractGame

StartServer() public méthode

public StartServer ( ) : void
Résultat void

StepHandler() public méthode

public StepHandler ( IState state ) : void
state IState
Résultat void

getGameGUI() public méthode

public getGameGUI ( AbstractGame game ) : System.Windows.Controls.UserControl
game AbstractGame
Résultat System.Windows.Controls.UserControl

Property Details

currentGame public_oe property

public AbstractGame currentGame
Résultat AbstractGame

currentGameGUI public_oe property

public UserControl,System.Windows.Controls currentGameGUI
Résultat System.Windows.Controls.UserControl

currentPlayerType public_oe property

public PlayerType currentPlayerType
Résultat PlayerType

otherPlayerType public_oe property

public PlayerType otherPlayerType
Résultat PlayerType