Class TItemOnWorld
Unit
CastleItems
Declaration
type TItemOnWorld = class(TCastleTransform)
Description
Item that is placed on a 3D world, ready to be picked up. It's not in anyone's inventory.
Hierarchy
Overview
Fields
Methods
Properties
Description
Fields
 |
class var RenderDebug: boolean; |
|
Render debug bounding boxes and captions at every creature.
|
 |
RotationSpeed: Single; |
|
Speed of the rotation of 3D item on world. In radians per second, default is DefaultRotationSpeed. Set to zero to disable rotation.
|
 |
AutoPick: boolean; |
|
Does the player automatically picks up items by walking over them. Default is True. If you set this to False, you most probably want to implement some other way of picking up items, use the ExtractItem method.
More precisely, this variable controls when TInventoryItem.Picked is called. When True, it is called for player when player steps over an item (otherwise it's never called). You can always override TInventoryItem.Picked for particular items to customize what happens at "pick" — the default implementation picks an item by adding it to inventory, but you could override it e.g. to consume some potions immediately on pickup.
|
 |
nested const DefaultRotationSpeed = Pi; |
|
|
Methods
 |
constructor Create(AOwner: TComponent); override; |
|
|
 |
destructor Destroy; override; |
|
|
 |
function GetExists: boolean; override; |
|
|
 |
procedure Update(const SecondsPassed: Single; var RemoveMe: TRemoveType); override; |
|
|
Properties
 |
property Collides default false; |
|
|
 |
property CollidesWithMoving default true; |
|
|
Generated by PasDoc 0.16.0.