Castle Game Engine: CastleItems: Class TItemWeapon

# Class TItemWeapon
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleItems ## Declaration `type TItemWeapon = class(TInventoryItem)` ## Description no description available, TInventoryItem description follows An item that can be used, kept in the inventory, or (using PutOnWorld that wraps it in TItemOnWorld) dropped on 3D world. Thanks to the Quantity property, this may actually represent many "stacked" items, all having the same properties. ## Hierarchy TComponent TInventoryItem TItemWeapon ## Overview ### Methods
| `function Resource: TItemWeaponResource;`
| `procedure Equip; virtual;`
| `procedure EquippedAttack(const LifeTime: Single); virtual;`
| `procedure EquippedUpdate(const LifeTime: Single); virtual;`
| `function EquippedScene(const LifeTime: Single): TCastleScene; virtual;`
## Description ### Methods
| `function Resource: TItemWeaponResource;`
| `procedure Equip; virtual;`
Owner equips this weapon.
| `procedure EquippedAttack(const LifeTime: Single); virtual;`
Owner starts attack with this equipped weapon.
| `procedure EquippedUpdate(const LifeTime: Single); virtual;`
Time passses for equipped weapon.
| `function EquippedScene(const LifeTime: Single): TCastleScene; virtual;`
Return the 3D model to render for this equipped weapon, or `Nil` if none.
Generated by PasDoc 0.13.0 on 2013-08-17 21:27:13