C# Class Game.ActionGameWindow

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

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected OnAttach ( ) : void
Résultat void

OnDetach() protected méthode

protected OnDetach ( ) : void
Résultat void

OnGetCameraTransform() protected méthode

protected OnGetCameraTransform ( Vec3 &position, Vec3 &forward, Vec3 &up, Degree &cameraFov ) : void
position Vec3
forward Vec3
up Vec3
cameraFov Degree
Résultat void

OnJoystickEvent() protected méthode

protected OnJoystickEvent ( JoystickInputEvent e ) : bool
e JoystickInputEvent
Résultat bool

OnKeyDown() protected méthode

protected OnKeyDown ( KeyEvent e ) : bool
e KeyEvent
Résultat bool

OnKeyPress() protected méthode

protected OnKeyPress ( KeyPressEvent e ) : bool
e KeyPressEvent
Résultat bool

OnKeyUp() protected méthode

protected OnKeyUp ( KeyEvent e ) : bool
e KeyEvent
Résultat bool

OnMouseDoubleClick() protected méthode

protected OnMouseDoubleClick ( EMouseButtons button ) : bool
button EMouseButtons
Résultat bool

OnMouseDown() protected méthode

protected OnMouseDown ( EMouseButtons button ) : bool
button EMouseButtons
Résultat bool

OnMouseMove() protected méthode

protected OnMouseMove ( ) : bool
Résultat bool

OnMouseUp() protected méthode

protected OnMouseUp ( EMouseButtons button ) : bool
button EMouseButtons
Résultat bool

OnMouseWheel() protected méthode

protected OnMouseWheel ( int delta ) : bool
delta int
Résultat bool

OnRender() protected méthode

protected OnRender ( ) : void
Résultat void

OnRenderUI() protected méthode

protected OnRenderUI ( GuiRenderer renderer ) : void
renderer GuiRenderer
Résultat void

OnTick() protected méthode

protected OnTick ( float delta ) : void
delta float
Résultat void