public void Notify(MapObjectStub mapObject)
 {
     foreach (Observer observer in observerList)
     {
         observer.Update(mapObject);
     }
 }
 public override void Update(MapObjectStub mapObject)
 {
     for (int i = 0; i < mapObjects.Count; i++)
     {
         if (mapObjects[i].id == mapObject.id)
         {
             mapObjects[i] = mapObject;
             break;
         }
         if (i == mapObjects.Count - 1)
         {
             mapObjects.Add(mapObject);
         }
     }
 }
 public abstract void Update(MapObjectStub mapObject);