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