Example #1
0
        private GamePlayer(LobbyPlayer lobbyPlayer, NetTunnel tunnel, GameRoom room)
        {
            this.name   = lobbyPlayer.Name;
            this.tunnel = tunnel;
            this.bank   = lobbyPlayer.Bank;

            this.lobbyPlayer = lobbyPlayer;
            this.gameRoom    = room;

            this.tunnel.OnMessageReceivedEvent      += new NetTunnel.OnMessageReceivedCall(tunnel_OnMessageReceivedEvent);
            this.tunnel.OnUnexpectedDisconnectEvent += new NetTunnel.OnUnexpectedDisconnectCall(tunnel_OnUnexpectedDisconnectEvent);
        }
        private GamePlayer(LobbyPlayer lobbyPlayer, NetTunnel tunnel, GameRoom room)
        {
            this.name = lobbyPlayer.Name;
            this.tunnel = tunnel;
            this.bank = lobbyPlayer.Bank;

            this.lobbyPlayer = lobbyPlayer;
            this.gameRoom = room;

            this.tunnel.OnMessageReceivedEvent += new NetTunnel.OnMessageReceivedCall(tunnel_OnMessageReceivedEvent);
            this.tunnel.OnUnexpectedDisconnectEvent += new NetTunnel.OnUnexpectedDisconnectCall(tunnel_OnUnexpectedDisconnectEvent);
        }
 public static GamePlayer GamePlayerFromLobbyPlayer(LobbyPlayer player, NetTunnel tunnel, GameRoom room)
 {
     return new GamePlayer(player, tunnel, room);
 }
Example #4
0
 public static GamePlayer GamePlayerFromLobbyPlayer(LobbyPlayer player, NetTunnel tunnel, GameRoom room)
 {
     return(new GamePlayer(player, tunnel, room));
 }