Castle Game Engine: CastlePlayer

# Unit CastlePlayer
Description | Uses | Classes, Interfaces, Objects and Records | Functions and Procedures | Types | Constants | Variables
## Description Player (TPlayer). ## Uses CastleBoxes CastleCameras CastleItems CastleVectors CastleInputs CastleKeysMouse X3DTriangles CastleMaterialProperties CastleSoundEngine Classes Castle3D CastleGLUtils CastleColors CastleFrustum CastleTriangles CastleTimeUtils ## 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_LeftRot: TInputShortcut;`
`PlayerInput_RightRot: TInputShortcut;`
`PlayerInput_LeftStrafe: TInputShortcut;`
`PlayerInput_RightStrafe: TInputShortcut;`
`PlayerInput_UpRotate: TInputShortcut;`
`PlayerInput_DownRotate: TInputShortcut;`
`PlayerInput_GravityUp: TInputShortcut;`
`PlayerInput_Jump: TInputShortcut;`
`PlayerInput_Crouch: TInputShortcut;`
## Description ### Types
`TPlayerSwimming = (...);`
###### Values psNo: psAboveWater: Player is floating on the water. Not falling down, but also not drowning. This means that player head is above the water surface but his feet are in the water. In some sense he/she is swimming, in some not. psUnderWater:
### Constants
`DefaultAutoOpenInventory = true;`
### Variables
`AutoOpenInventory: boolean = DefaultAutoOpenInventory;`
Automatically open TCastlePlayer inventory when picking up an item. Saved/loaded to config file in this unit.
`PlayerInput_Forward: TInputShortcut;`
`PlayerInput_Backward: TInputShortcut;`
`PlayerInput_LeftRot: TInputShortcut;`
`PlayerInput_RightRot: TInputShortcut;`
`PlayerInput_LeftStrafe: TInputShortcut;`
`PlayerInput_RightStrafe: TInputShortcut;`
`PlayerInput_UpRotate: TInputShortcut;`
`PlayerInput_DownRotate: TInputShortcut;`
`PlayerInput_GravityUp: TInputShortcut;`
`PlayerInput_Jump: TInputShortcut;`
`PlayerInput_Crouch: TInputShortcut;`
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:10