C# Класс Game.ActionGameWindow

Defines a game window for FPS and TPS games.
Наследование: GameWindow
Показать файл Открыть проект Примеры использования класса

Защищенные методы

Метод Описание
OnAttach ( ) : void
OnDetach ( ) : void
OnGetCameraTransform ( Vec3 &position, Vec3 &forward, Vec3 &up, Degree &cameraFov ) : void
OnJoystickEvent ( JoystickInputEvent e ) : bool
OnKeyDown ( KeyEvent e ) : bool
OnKeyPress ( KeyPressEvent e ) : bool
OnKeyUp ( KeyEvent e ) : bool
OnMouseDoubleClick ( EMouseButtons button ) : bool
OnMouseDown ( EMouseButtons button ) : bool
OnMouseMove ( ) : bool
OnMouseUp ( EMouseButtons button ) : bool
OnMouseWheel ( int delta ) : bool
OnRender ( ) : void
OnRenderUI ( GuiRenderer renderer ) : void
OnTick ( float delta ) : void

Приватные методы

Метод Описание
ConsoleCommand_MovePlayerUnitToCamera ( string arguments ) : void
CurrentUnitAllowPlayerControlUse ( ) : bool
DrawPlayerInformation ( GuiRenderer renderer ) : void

To draw some information of a player

DrawPlayersStatistics ( GuiRenderer renderer ) : void
DrawTankGunTarget ( GuiRenderer renderer ) : void
DrawTarget ( GuiRenderer renderer ) : void

Draw a target at center of screen

GameControlsManager_GameControlsEvent ( GameControlsEventData e ) : void
GetActiveObserveCameraArea ( ) : ProjectEntities.ObserveCameraArea

Finds observe area in which there is a player.

GetActiveObserveCameraAreaCameraOrientation ( Vec3 &position, Vec3 &forward, Vec3 &up, Degree &cameraFov ) : bool

Receives orientation of the camera in the observe area of in which there is a player.

GetNearestPointToMapCurve ( Vec3 destPos, MapCurve mapCurve ) : Vec3

Finds the nearest point to a map curve.

GetPlayerUnit ( ) : Unit
GetRealCameraType ( ) : CameraType
IsCutSceneEnabled ( ) : bool
IsPlayerUnitVehicle ( ) : bool
SwitchUseEnd ( ) : void
SwitchUseStart ( ) : bool
UpdateCurrentPlayerUseObjects ( ) : void

Updates objects on which the player can to operate. Such as which the player can supervise switches, ingameGUI or control units.

UpdateHUD ( ) : void

Updates HUD screen

UpdateHUDControlIcon ( EControl control, string iconName ) : void
UpdatePlayerContusionMotionBlur ( ) : void

Описание методов

OnAttach() защищенный Метод

protected OnAttach ( ) : void
Результат void

OnDetach() защищенный Метод

protected OnDetach ( ) : void
Результат void

OnGetCameraTransform() защищенный Метод

protected OnGetCameraTransform ( Vec3 &position, Vec3 &forward, Vec3 &up, Degree &cameraFov ) : void
position Vec3
forward Vec3
up Vec3
cameraFov Degree
Результат void

OnJoystickEvent() защищенный Метод

protected OnJoystickEvent ( JoystickInputEvent e ) : bool
e JoystickInputEvent
Результат bool

OnKeyDown() защищенный Метод

protected OnKeyDown ( KeyEvent e ) : bool
e KeyEvent
Результат bool

OnKeyPress() защищенный Метод

protected OnKeyPress ( KeyPressEvent e ) : bool
e KeyPressEvent
Результат bool

OnKeyUp() защищенный Метод

protected OnKeyUp ( KeyEvent e ) : bool
e KeyEvent
Результат bool

OnMouseDoubleClick() защищенный Метод

protected OnMouseDoubleClick ( EMouseButtons button ) : bool
button EMouseButtons
Результат bool

OnMouseDown() защищенный Метод

protected OnMouseDown ( EMouseButtons button ) : bool
button EMouseButtons
Результат bool

OnMouseMove() защищенный Метод

protected OnMouseMove ( ) : bool
Результат bool

OnMouseUp() защищенный Метод

protected OnMouseUp ( EMouseButtons button ) : bool
button EMouseButtons
Результат bool

OnMouseWheel() защищенный Метод

protected OnMouseWheel ( int delta ) : bool
delta int
Результат bool

OnRender() защищенный Метод

protected OnRender ( ) : void
Результат void

OnRenderUI() защищенный Метод

protected OnRenderUI ( GuiRenderer renderer ) : void
renderer GuiRenderer
Результат void

OnTick() защищенный Метод

protected OnTick ( float delta ) : void
delta float
Результат void