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);
 }
Exemple #2
0
 public ServerSocket(Socket socket, Connection connection)
 {
     this.socket = socket;
     this.connection = connection;
 }
Exemple #3
0
 public User(string name, Connection connection)
 {
     this.Name = name;
     this.Authentication = userSeed++;
     this.Connection = connection;
 }
Exemple #4
0
 public RespondToGameEventArgs(Connection connection, bool accepted)
 {
     this.Connection = connection;
     this.Accepted = accepted;
 }