public ServerPlayerStrategy(string name, GameModel gameModel, Connection connection) : base(gameModel, new ServerChooser()) { this.name = name; this.connection = connection; ((ServerChooser)this.Chooser).Strategy = this; this.connection.GameMessage += new GameMessageEventHandler(connection_GameMessage); }
public ServerSocket(Socket socket, Connection connection) { this.socket = socket; this.connection = connection; }
public User(string name, Connection connection) { this.Name = name; this.Authentication = userSeed++; this.Connection = connection; }
public RespondToGameEventArgs(Connection connection, bool accepted) { this.Connection = connection; this.Accepted = accepted; }