예제 #1
0
 /// <summary>
 /// Add an observer to this CharacterAmmo.
 /// </summary>
 /// <param name="obs">Observer to be added</param>
 public void addObserver(CharacterStatusObserverInterface obs)
 {
     observers_.Add(obs);
 }
예제 #2
0
 /// <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_);
 }