Example #1
0
 public void Look(Mobile looker)
 {
     looker.EnqueueMessages(NotificationMessage.Name(Name), NotificationMessage.Description(Description));
 }
Example #2
0
 public void Enter(Mobile who, KnownDirection direction)
 {
     who.Place = this;
     _mobiles.Add(who.Id, who);
     who.EnqueueMessages(NotificationMessage.Name(Name));
 }
Example #3
0
 public void Exit(Mobile who, KnownDirection direction)
 {
     _mobiles.Remove(who.Id);
 }
Example #4
0
 public void Broadcast(Mobile sender, params IMessage[] messages)
 {
     foreach (var mobile in _mobiles.Values)
     {
         if (mobile.Id == sender.Id)
             continue;
         mobile.EnqueueMessages(messages);
     }
 }