Example #1
0
 public void GroupVisRemove(Player player, Group group, Player whom)
 {
     // Ignore messages sent by myself
     if (player != Player.LocalPlayer)
     {
         group.RemoveViewer(whom, false);
     }
     Program.GameMess.PlayerEvent(player, "hides {0} from {1}.", group, whom);
 }
Example #2
0
 public void GroupVisRemove(Player player, Group group, Player whom)
 {
     WriteReplayAction(player.Id);
     // Ignore messages sent by myself
     if (!IsLocalPlayer(player))
     {
         group.RemoveViewer(whom, false);
     }
     Program.GameMess.PlayerEvent(player, "hides {0} from {1}.", group, whom);
 }
Example #3
0
        public void GroupRemoveViewer(int id, int pid)
        {
            Group  group  = Group.Find(id);
            Player player = Player.Find((byte)pid);

            if (group.Controller != Player.LocalPlayer)
            {
                Program.GameMess.Warning("{0} can't set visibility on {0} because they don't control it.", Player.LocalPlayer.Name, group.Name);
                return;
            }
            if (!group.Viewers.Contains(player))
            {
                return;
            }
            else
            {
                QueueAction(() => group.RemoveViewer(player, true));
            }
        }
Example #4
0
 public void GroupVisRemove(Player player, Group group, Player whom)
 {
     // Ignore messages sent by myself
     if (player != Player.LocalPlayer)
         group.RemoveViewer(whom, false);
     Program.GameMess.PlayerEvent(player, "hides {0} from {1}.", group, whom);
 }