public void GiveItem(Item item)
{
if (_inventory.Count < Constants.MAX_INVENTORY_ITEMS)
{
_inventory.Add(item);
if (this.InMap)
this.SendInventory();
this.SendMessage("You have received " + item.Name);
}
else
{
this.SendMessage("Your inventory is full!");
}
}