Esempio n. 1
0
 /// <summary>
 /// Gets a value indicating whether or not the character as the inventory item in their
 /// inventory.
 /// </summary>
 /// <param name="inventoryItem">
 /// The inventory item to check if is in the character's inventory.
 /// </param>
 /// <returns>
 /// True if the inventory item is in the character's inventory; false otherwise.
 /// </returns>
 public bool HasInventory(InventoryItem inventoryItem)
 {
     return this.Inventory.Contains(inventoryItem);
 }
Esempio n. 2
0
 /// <summary>
 /// Removes an inventory item from this character's inventory.
 /// </summary>
 /// <param name="inventoryItem">
 /// The inventory item to remove from the character's inventory.
 /// </param>
 public void RemoveInventory(InventoryItem inventoryItem)
 {
     this.Inventory.Remove(inventoryItem);
 }
Esempio n. 3
0
 /// <summary>
 /// Adds an inventory item to this character's inventory.
 /// </summary>
 /// <param name="inventoryItem">
 /// The inventory item to add to the character's inventory.
 /// </param>
 public void AddInventory(InventoryItem inventoryItem)
 {
     this.Inventory.Add(inventoryItem);
 }