![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <mouse_look_script.hpp>
Public Types | |
| enum | RotationAxes : U8 { RotationAxes::MouseX = 1, RotationAxes::MouseY = 2, RotationAxes::MouseXAndY = MouseX | MouseY } |
Public Member Functions | |
| MouseLookScript () | |
| MouseLookScript (const MouseLookScript &script) noexcept | |
| MouseLookScript (MouseLookScript &&script) noexcept | |
| virtual | ~MouseLookScript () |
| MouseLookScript & | operator= (const MouseLookScript &script) noexcept |
| MouseLookScript & | operator= (MouseLookScript &&script) noexcept |
| virtual void | Load ([[maybe_unused]] Engine &engine) override |
| virtual void | Update ([[maybe_unused]] Engine &engine) override |
| RotationAxes | GetRotationAxes () const noexcept |
| void | SetRotationAxes (RotationAxes axes) noexcept |
| F32 | GetSensitivityX () const noexcept |
| F32 | GetSensitivityY () const noexcept |
| const F32x2 | GetSensitivity () const noexcept |
| void | SetSensitivityX (F32 x) noexcept |
| void | SetSensitivityY (F32 y) noexcept |
| void | SetSensitivity (F32 x, F32 y) |
| void | SetSensitivity (F32x2 sensitivity) noexcept |
| void XM_CALLCONV | SetSensitivity (FXMVECTOR sensitivity) noexcept |
| F32 | GetMinimumRotationX () const noexcept |
| F32 | GetMinimumRotationY () const noexcept |
| const F32x2 | GetMinimumRotation () const noexcept |
| void | SetMinimumRotationX (F32 x) noexcept |
| void | SetMinimumRotationY (F32 y) noexcept |
| void | SetMinimumRotation (F32 x, F32 y) noexcept |
| void | SetMinimumRotation (F32x2 minimum_rotation) noexcept |
| void XM_CALLCONV | SetMinimumRotation (FXMVECTOR minimum_rotation) noexcept |
| F32 | GetMaximumRotationX () const noexcept |
| F32 | GetMaximumRotationY () const noexcept |
| const F32x2 | GetMaximumRotation () const noexcept |
| void | SetMaximumRotationX (F32 x) noexcept |
| void | SetMaximumRotationY (F32 y) noexcept |
| void | SetMaximumRotation (F32 x, F32 y) noexcept |
| void | SetMaximumRotation (F32x2 maximum_rotation) noexcept |
| void XM_CALLCONV | SetMaximumRotation (FXMVECTOR maximum_rotation) noexcept |
| void | InvertDirectionX () noexcept |
| void | InvertDirectionY () noexcept |
Public Member Functions inherited from mage::BehaviorScript | |
| virtual | ~BehaviorScript () |
| BehaviorScript & | operator= (const BehaviorScript &script) noexcept |
| BehaviorScript & | operator= (BehaviorScript &&script) noexcept |
| virtual void | FixedUpdate ([[maybe_unused]] Engine &engine) |
| virtual void | Close ([[maybe_unused]] Engine &engine) |
Public Member Functions inherited from mage::Component | |
| virtual | ~Component () |
| Component & | operator= (const Component &component) noexcept |
| Component & | operator= (Component &&component) noexcept |
| State | GetState () const noexcept |
| void | SetState (State state) noexcept |
| U64 | GetGuid () const noexcept |
| bool | HasOwner () const noexcept |
| ProxyPtr< Node > | GetOwner () noexcept |
| ProxyPtr< const Node > | GetOwner () const noexcept |
Private Attributes | |
| bool | m_locked |
| RotationAxes | m_axes |
| F32x2 | m_sensitivity |
| F32x2 | m_minimum_rotation |
| F32x2 | m_maximum_rotation |
| F32x2 | m_direction |
Additional Inherited Members | |
Protected Member Functions inherited from mage::BehaviorScript | |
| BehaviorScript () noexcept | |
| BehaviorScript (const BehaviorScript &script) noexcept | |
| BehaviorScript (BehaviorScript &&script) noexcept | |
Protected Member Functions inherited from mage::Component | |
| Component () noexcept | |
| Component (const Component &component) noexcept | |
| Component (Component &&component) noexcept | |
|
strong |
| mage::script::MouseLookScript::MouseLookScript | ( | ) |
|
defaultnoexcept |
|
defaultnoexcept |
|
virtualdefault |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
overridevirtual |
Loads this behavior script. Allows this behavior script to preform any pre-processing.
| [in,out] | engine | A reference to the engine. |
| Exception | Failed to load this behavior script. |
Reimplemented from mage::BehaviorScript.
|
defaultnoexcept |
|
defaultnoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
overridevirtual |
Updates this behavior script.
This method is called once per frame.
| [in,out] | engine | A reference to the engine. |
| Exception | Failed to update this behavior script. |
Reimplemented from mage::BehaviorScript.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |