Unit CastlePlayer

Description

Player (TPlayer).

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TPlayer Player, 3D object controlling the camera, main enemy of hostile creatures, carries a backpack, may cause fadeout effects on screen and such.

Types

TPlayerSwimming = (...);

Constants

DefaultAutoOpenInventory = true;

Variables

AutoOpenInventory: boolean = DefaultAutoOpenInventory;
PlayerInput_Forward: TInputShortcut;
PlayerInput_Backward: TInputShortcut;
PlayerInput_LeftRotate: TInputShortcut;
PlayerInput_RightRotate: TInputShortcut;
PlayerInput_LeftStrafe: TInputShortcut;
PlayerInput_RightStrafe: TInputShortcut;
PlayerInput_UpRotate: TInputShortcut;
PlayerInput_DownRotate: TInputShortcut;
PlayerInput_GravityUp: TInputShortcut;
PlayerInput_Jump: TInputShortcut;
PlayerInput_Crouch: TInputShortcut;
PlayerInput_Attack: TInputShortcut;
PlayerInput_InventoryShow: TInputShortcut;
PlayerInput_InventoryPrevious: TInputShortcut;
PlayerInput_InventoryNext: TInputShortcut;
PlayerInput_UseItem: TInputShortcut;
PlayerInput_DropItem: TInputShortcut;
PlayerInput_CancelFlying: TInputShortcut;

Description

Types

TPlayerSwimming = (...);
 
Values
  • psNo: Not swimming.
  • psAboveWater: Swimming on the water surface. Conceptually, avatar is submerged in water, but has head above the water.
  • psUnderWater: Swimming under the water surface. Conpeptually, avatar is fully submerged in water, and may have trouble breathing. Games may simulate lack of oxygen, drowning etc. in this case.

Constants

DefaultAutoOpenInventory = true;
 

Variables

AutoOpenInventory: boolean = DefaultAutoOpenInventory;

Automatically open TCastlePlayer inventory when picking up an item.

PlayerInput_Forward: TInputShortcut;

Player inputs that handle navigation.

PlayerInput_Backward: TInputShortcut;
 
PlayerInput_LeftRotate: TInputShortcut;
 
PlayerInput_RightRotate: TInputShortcut;
 
PlayerInput_LeftStrafe: TInputShortcut;
 
PlayerInput_RightStrafe: TInputShortcut;
 
PlayerInput_UpRotate: TInputShortcut;
 
PlayerInput_DownRotate: TInputShortcut;
 
PlayerInput_GravityUp: TInputShortcut;
 
PlayerInput_Jump: TInputShortcut;
 
PlayerInput_Crouch: TInputShortcut;
 
PlayerInput_Attack: TInputShortcut;

Player inputs that deal with items.

PlayerInput_InventoryShow: TInputShortcut;

No key/mouse associated by default.

PlayerInput_InventoryPrevious: TInputShortcut;
 
PlayerInput_InventoryNext: TInputShortcut;
 
PlayerInput_UseItem: TInputShortcut;
 
PlayerInput_DropItem: TInputShortcut;

No key/mouse associated by default.

PlayerInput_CancelFlying: TInputShortcut;

No key/mouse associated by default.


Generated by PasDoc 0.15.0.