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