Esempio n. 1
0
 /// <summary>
 /// Is called whenever a new object appears within vision range of this Character
 /// </summary>
 public void OnEncountered(WorldObject obj)
 {
     if (obj != this)
     {
         obj.OnEncounteredBy(this);
     }
     KnownObjects.Add(obj);
 }
Esempio n. 2
0
 /// <summary>
 /// Is called whenever a new object appears within vision range of this Character
 /// </summary>
 public void OnEncountered(WorldObject obj)
 {
     if (obj != this)
     {
         obj.OnEncounteredBy(this);
     }
     KnownObjects.Add(obj);
     SendUnknownState(obj);
 }