C# Class Game.ActionGameWindow

Defines a game window for FPS and TPS games.
Inheritance: GameWindow
Mostra file Open project: DarrenHassan/GDM4242-GroupD Class Usage Examples

Protected Methods

Method Description
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

Private Methods

Method Description
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

Method Details

OnAttach() protected method

protected OnAttach ( ) : void
return void

OnDetach() protected method

protected OnDetach ( ) : void
return void

OnGetCameraTransform() protected method

protected OnGetCameraTransform ( Vec3 &position, Vec3 &forward, Vec3 &up, Degree &cameraFov ) : void
position Vec3
forward Vec3
up Vec3
cameraFov Degree
return void

OnJoystickEvent() protected method

protected OnJoystickEvent ( JoystickInputEvent e ) : bool
e JoystickInputEvent
return bool

OnKeyDown() protected method

protected OnKeyDown ( KeyEvent e ) : bool
e KeyEvent
return bool

OnKeyPress() protected method

protected OnKeyPress ( KeyPressEvent e ) : bool
e KeyPressEvent
return bool

OnKeyUp() protected method

protected OnKeyUp ( KeyEvent e ) : bool
e KeyEvent
return bool

OnMouseDoubleClick() protected method

protected OnMouseDoubleClick ( EMouseButtons button ) : bool
button EMouseButtons
return bool

OnMouseDown() protected method

protected OnMouseDown ( EMouseButtons button ) : bool
button EMouseButtons
return bool

OnMouseMove() protected method

protected OnMouseMove ( ) : bool
return bool

OnMouseUp() protected method

protected OnMouseUp ( EMouseButtons button ) : bool
button EMouseButtons
return bool

OnMouseWheel() protected method

protected OnMouseWheel ( int delta ) : bool
delta int
return bool

OnRender() protected method

protected OnRender ( ) : void
return void

OnRenderUI() protected method

protected OnRenderUI ( GuiRenderer renderer ) : void
renderer GuiRenderer
return void

OnTick() protected method

protected OnTick ( float delta ) : void
delta float
return void