ConnectUser() private method

private ConnectUser ( User user ) : void
user User
return void
Beispiel #1
0
        public void SetPlayer(Player player)
        {
            trace.TraceInformation("{0} takes control of {1}", this, player);
            this.Player = player;
            player.ConnectUser(this);

            if (m_ipStartTask != null)
            {
                m_ipStartTask.Wait();
            }

            if (m_ipRunner != null)
            {
                m_ipRunner.SetPlayer(player);
            }
        }
Beispiel #2
0
        public void SetPlayer(Player player)
        {
            trace.TraceInformation("{0} takes control of {1}", this, player);
            this.Player = player;
            player.ConnectUser(this);

            if (m_ipStartTask != null)
                m_ipStartTask.Wait();

            if (m_ipRunner != null)
                m_ipRunner.SetPlayer(player);
        }