The Item class represent a single in-game Item object. Examples of Item are: Swords, bags, bandages, reagents, clothing.
While the Item.Serial is unique for each Item, Item.ItemID is the unique for the Item apparence, or image. Sometimes is also called ID or Graphics ID.
Item can also be house foriture as well as decorative items on the ground, like lamp post and banches.
However, for Item on the ground that cannot be picked up, they might be part of the world map, see Statics class.
TODO: Item Constructors
Read amount from item type object.
Serial of the container which contains the object.
Contains the list of Item inside a container.
-1 until corpse is checked, then # items in corpse. Used by looter to ignore empty corpses
Get the current durability of an Item. (0: no durability)
Returns the GridNum of the item. (need better documentation)
Get the in-game image on an Item as Bitmap object.
See MSDN: https://docs.microsoft.com/dotnet/api/system.drawing.bitmap
True: if the item is a bag of sending - False: otherwise.
True: if the item is a container - False: otherwise.
True: if the item is a corpse - False: otherwise.
True: if the item is a door - False: otherwise.
True: if the item is in the Player's bank - False: otherwise.
True: For regualar items - False: for hair, beards, etc.
True: if the item is a potion - False: otherwise.
True: if the item is a resource (ore, sand, wood, stone, fish) - False: otherwise
True: if the item is a pouch - False: otherwise.
True: if the item is a 2-handed weapon - False: otherwise.
True: if the item is a virtue shield - False: otherwise.
Represents the type of Item, usually unique for the Item image. Sometime called ID or Graphics ID.
Gets the Layer, for werable items only. (need better documentation)
Item light's direction (e.g. will affect corpse's facing direction)
Get the maximum durability of an Item. (0: no durability)
Item is movable
True: if the item is on the ground - False: otherwise.
Get the list of Properties of an Item.
True: if Properties are updated - False: otherwise.
Get serial of root container of item.
Check if the Item already have been updated with all the properties. (need better documentation)
Item is Visible
Get the weight of a item. (0: no weight)
Return the distance in number of tiles, from Item to Mobile.
Target as Item
Target as Mobile
Distance in number of tiles.
Check if an Item is contained in a container. Can be a Item or a Mobile (wear by).
Item as container.
Mobile as container.
True: if is contained - False: otherwise.