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 GL GLU 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_UpMove: TInputShortcut;`
`PlayerInput_DownMove: 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_UpMove: TInputShortcut;`
`PlayerInput_DownMove: TInputShortcut;`
Generated by PasDoc 0.13.0 on 2013-08-17 21:27:13