/// <summary> /// Add an observer to this CharacterAmmo. /// </summary> /// <param name="obs">Observer to be added</param> public void addObserver(CharacterStatusObserverInterface obs) { observers_.Add(obs); }
/// <summary> /// Add an observer to this CharacterHealth. /// </summary> /// <param name="obs">Observer to be added</param> public void addObserver(CharacterStatusObserverInterface obs) { observers_.Add(obs); obs.notifyOfChange(health_value_); }