Exemple #1
0
 /// <summary>
 /// Remove a GameItem from the GameItem list
 /// </summary>
 /// <param name="item"></param>
 internal void GameItemDestroyed(GameItem item)
 {
     Debug.Assert(item != null, @"(game, GameItemDestroyed) Item is null");
     Debug.Assert(_items.Contains(item), @"(game, GameItemDestroyed) Item not in gameitemlist");
     _items.Remove(item);
     Debug.Assert(!_items.Contains(item), @"(game, GameItemDestroyed) Item still in gameitemlist");
 }
Exemple #2
0
 // GameItems Methods
 /// <summary>
 /// Add GameItem to GameItem list
 /// </summary>
 /// <param name="item"></param>
 internal void GameItemCreated(GameItem item)
 {
     _items.Add(item);
 }