En:InventoryItem
Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.
[править]
Class InventoryItem
Class is used for creation, configuration and management items in unit inventories and/or containers
[править]
Methods list
| NewItem | Create new inventory object (item) |
| AddToObject | Add earlier created object to object inventory |
| UseItemFrom | Search item with id=<item_id> in object inventory with name <object_name> and set pointer to it |
| ReleaseItem | Release pointer to inventory item. Procedure call make sense if preliminary the item has been found by means of function UseItemFrom |
| SetDescription | Set description for invenroty item |
| SetWeight | Set item weight in grammes |
| SetUseItemState | Set item use states |
| SetWeaponState | Set weapon state for item |
| SetArmourState | Set armour state for item. Not compatible with weapon state |
| isCanUse | Check: current item can be used? |
| isCanUseOn | Check: current item can be used to anything? |
| isWeapon | Check: item is weapon? |
| isArmour | Check: item is armour? |
| SetActionPoints | Set specified type value of action points |
| GetActionPoints | Get value of action points by specified type |
| SetDamageResistance | Set value of damage resistance |
| GetMinDamageResistance | Get minimum value of damage resistance |
| GetMaxDamageResistance | Get maximum value of damage resistance |
| SetFileNameForUnit | Set prefix of sprite file name for object-unit, who has current item in invenory (i.e. if unit holds current item in hand) |
| SetArmourParam | Set value of armour parameter |
| GetArmourParam | Get value of armour parameter |
| SetWeaponParam | Set value of weapon parameter |
| GetWeaponParam | Get value of armour parameter |
| SetWeaponDamage | Set weapon damage |
| GetMinWeaponDamage | Get minimum value of weapon damage (if item is weapon) |
| GetMaxWeaponDamage | Get maximum value of weapon damage (if item is weapon) |
| SetWeaponBonus | Set value of weapon bonus |
| GetWeaponBonus | Get value of weapon bonus |
| SetCount | Set count of current item |
| GetCount | Get count of current item |
| SetPrice | Set item price |
| GetPrice | Get item price |
| SetAttackCaptions | Set file name which will be display current attack caption on large game panel (over weapon) |
| SetDeterioration | Set value of item deterioration (amortization) |
| GetDeterioration | Get value of item deterioration (amortization) |
| SetAttackFileNames | Set prefix of animation files names which describe current attack |
| GetAmmunition | Get string representation of ammunition for current item |
| SetAmmunition | Set ammunition for current item |
| Free | Object destructor |