public BluffinLobbyWorker(IBluffinServer server, IBluffinLobby lobby) { Server = server; Lobby = lobby; m_Methods = new[] { //General new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient> >(typeof(DisconnectCommand), OnDisconnectCommandReceived), //Lobby new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient> >(typeof(ListTableCommand), OnListTableCommandReceived), new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient> >(typeof(CheckCompatibilityCommand), OnCheckCompatibilityCommandReceived), new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient> >(typeof(JoinTableCommand), OnJoinTableCommandReceived), new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient> >(typeof(LeaveTableCommand), OnLeaveTableCommandReceived), new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient> >(typeof(CreateTableCommand), OnCreateTableCommandReceived), //Lobby QuickMode new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient> >(typeof(IdentifyCommand), OnIdentifyCommandReceived), //Lobby RegisteredMode new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient> >(typeof(CheckDisplayExistCommand), OnCheckDisplayExistCommandReceived), new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient> >(typeof(CheckUserExistCommand), OnCheckUserExistCommandReceived), new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient> >(typeof(CreateUserCommand), OnCreateUserCommandReceived), new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient> >(typeof(AuthenticateUserCommand), OnAuthenticateUserCommandReceived), new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient> >(typeof(GetUserCommand), OnGetUserCommandReceived) }; }
public BluffinLobbyWorker(IBluffinServer server, IBluffinLobby lobby) { Server = server; Lobby = lobby; m_Methods = new[] { //General new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient>>(typeof(AbstractBluffinCommand), OnCommandReceived), new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient>>(typeof(DisconnectCommand), OnDisconnectCommandReceived), //Lobby new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient>>(typeof(ListTableCommand), OnListTableCommandReceived), new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient>>(typeof(CheckCompatibilityCommand), OnCheckCompatibilityCommandReceived), new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient>>(typeof(JoinTableCommand), OnJoinTableCommandReceived), new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient>>(typeof(LeaveTableCommand), OnLeaveTableCommandReceived), new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient>>(typeof(CreateTableCommand), OnCreateTableCommandReceived), //Lobby QuickMode new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient>>(typeof(IdentifyCommand), OnIdentifyCommandReceived), //Lobby RegisteredMode new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient>>(typeof(CheckDisplayExistCommand), OnCheckDisplayExistCommandReceived), new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient>>(typeof(CheckUserExistCommand), OnCheckUserExistCommandReceived), new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient>>(typeof(CreateUserCommand), OnCreateUserCommandReceived), new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient>>(typeof(AuthenticateUserCommand), OnAuthenticateUserCommandReceived), new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient>>(typeof(GetUserCommand), OnGetUserCommandReceived) }; }
public RemotePlayer(PokerGame game, PlayerInfo player, IBluffinClient client, IBluffinServer server, int tableId) { Game = game; Player = player; Client = client; TableId = tableId; Server = server; }
public BluffinGameWorker(IBluffinServer server) { Server = server; m_Methods = new[] { //General new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient, RemotePlayer> >(typeof(DisconnectCommand), OnDisconnectCommandReceived), //Game new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient, RemotePlayer> >(typeof(PlayerPlayMoneyCommand), OnPlayerPlayMoneyCommandReceived), new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient, RemotePlayer> >(typeof(PlayerDiscardActionCommand), OnPlayerDiscardActionCommandReceived), new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient, RemotePlayer> >(typeof(PlayerSitOutCommand), OnPlayerSitOutCommandReceived), new KeyValuePair <Type, Action <AbstractCommand, IBluffinClient, RemotePlayer> >(typeof(PlayerSitInCommand), OnPlayerSitInCommandReceived) }; }
public BluffinGameWorker(IBluffinServer server) { Server = server; m_Methods = new[] { //General new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient, RemotePlayer>>(typeof(AbstractBluffinCommand), OnCommandReceived), new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient, RemotePlayer>>(typeof(DisconnectCommand), OnDisconnectCommandReceived), //Game new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient, RemotePlayer>>(typeof(PlayerPlayMoneyCommand), OnPlayerPlayMoneyCommandReceived), new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient, RemotePlayer>>(typeof(PlayerSitOutCommand), OnPlayerSitOutCommandReceived), new KeyValuePair<Type, Action<AbstractBluffinCommand, IBluffinClient, RemotePlayer>>(typeof(PlayerSitInCommand), OnPlayerSitInCommandReceived) }; }
public LocalTcpServer(int port, IBluffinServer bluffinServer) : base(port) { m_BluffinServer = bluffinServer; }
public RemoteTcpClient(TcpClient remoteEntity, IBluffinServer bluffinServer) : base(remoteEntity) { m_BluffinServer = bluffinServer; Logger.LogClientCreated(remoteEntity, this); }
public LocalTcpServer(int port, IBluffinServer bluffinServer) : base(port) { m_BluffinServer = bluffinServer; Port = port; }