Beispiel #1
0
        public void notifyUsersAfterChallenge(User challengedUser)
        {
            MessagePacket packet = new MessagePacket(GameProtocol.ChangeUserToChallenged(), challengedUser.Username);

            foreach (User user in Singleton.Singleton.Instance.ListOfUsersLogged)
            {
                if (user == challengedUser)
                {
                    continue;
                }
                Othello.Server.SendPacket(user.Socket, packet.getData());
            }
        }