Esempio n. 1
0
 public LobbyConnection(LocalConnection connection, MatchServer matchServer, LogOnService logOnService)
 {
     _connection = connection;
       _logOnService = logOnService;
       _registrationService = new RegistrationService();
       AuthenticationService = new AuthenticationService();
       MatchServer = matchServer;
 }
Esempio n. 2
0
 public Match(string seed, IEnumerable<string> accountIds, int lobby, MatchType matchType, LogOnService logOnService)
 {
     _lobby = lobby;
       _matchType = matchType;
       _logOnService = logOnService;
       _shuffler = new WallGenerator(seed);
       _firstOyaIndex = _shuffler.GetWall(0).First().Id % 4;
       var playerIndex = 0;
       foreach (var player in accountIds)
       {
     _players.Add(player, new PlayerStatus(playerIndex));
     playerIndex += 1;
       }
       _stateMachine = new StateMachine(new PlayersConnectingState(this));
       _stateMachine.Finished += OnFinished;
 }
Esempio n. 3
0
 public MatchServer(ISeedGenerator seedGenerator, LogOnService logOnService)
 {
     _seedGenerator = seedGenerator;
       _logOnService = logOnService;
 }
Esempio n. 4
0
 public LocalLobbyServer(ISeedGenerator seedGenerator)
 {
     _logOnService = new LogOnService();
       _matchServer = new MatchServer(seedGenerator, _logOnService);
 }