public void PickupThingFromRoom(PickupableThing pickupableThing, Player player, Room room) { var hasRemoved = room.RemoveFromInventory(pickupableThing); if (!hasRemoved) { return; } player.AddToInventory(pickupableThing); }
public bool RemoveFromInventory(PickupableThing pickupableThing) { return(Inventory.Remove(pickupableThing)); }
public void AddToInventory(PickupableThing pickupableThing) { Inventory.Add(pickupableThing); }