/// <summary> /// Adds a behavior to the map object for when it is notified of an event /// </summary> /// <param name="tag">The triggering events tag name</param> /// <param name="behavior">The behavior to actually act upon</param> public void addNotifyBehavior(string tag, NotifyBehaviorMapObject behavior) { if(_notifyBehaviors.ContainsKey(tag) != true) { _notifyBehaviors[tag] = new List<NotifyBehaviorMapObject>(); if (_notify != null) { _notify.registerObserver(tag, this); } } _notifyBehaviors[tag].Add(behavior); }
public NotifyBehaviorMapObject(NotifyBehaviorMapObject cloning) { }