![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <behavior_script.hpp>
Public Member Functions | |
virtual | ~BehaviorScript () |
BehaviorScript & | operator= (const BehaviorScript &script) noexcept |
BehaviorScript & | operator= (BehaviorScript &&script) noexcept |
virtual void | Load ([[maybe_unused]] Engine &engine) |
virtual void | FixedUpdate ([[maybe_unused]] Engine &engine) |
virtual void | Update ([[maybe_unused]] Engine &engine) |
virtual void | Close ([[maybe_unused]] Engine &engine) |
![]() | |
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 |
Protected Member Functions | |
BehaviorScript () noexcept | |
BehaviorScript (const BehaviorScript &script) noexcept | |
BehaviorScript (BehaviorScript &&script) noexcept | |
![]() | |
Component () noexcept | |
Component (const Component &component) noexcept | |
Component (Component &&component) noexcept | |
A class of behavior scripts.
|
virtualdefault |
Destructs this behavior script.
|
protecteddefaultnoexcept |
Constructs a behavior script.
|
protecteddefaultnoexcept |
Constructs a behavior script from the given behavior script.
[in] | script | A reference to the behavior script to copy. |
|
protecteddefaultnoexcept |
Constructs a behavior script by moving the given behavior script.
[in] | script | A reference to the behavior script to move. |
|
virtual |
Closes this behavior script. Allows this behavior script to preform any post-processing destruction.
[in,out] | engine | A reference to the engine. |
Exception | Failed to close this behavior script. |
|
virtual |
Updates this behavior script.
This method can be called zero, one or multiple times per frame depending on the fixed delta time used by the engine.
[in,out] | engine | A reference to the engine. |
Exception | Failed to update this behavior script. |
|
virtual |
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 in mage::script::TextConsoleScript, mage::script::MouseLookScript, mage::script::RotationScript, mage::script::CharacterMotorScript, mage::script::ManhattanMotorScript, mage::script::StatsScript, mage::script::VoxelGridAnchorScript, and mage::script::EditorScript.
|
defaultnoexcept |
Copies the given behavior script to this behavior script.
[in] | script | A reference to the behavior script to copy. |
|
defaultnoexcept |
Moves the given behavior script to this behavior script.
[in] | script | A reference to the behavior script to move. |
|
virtual |
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 in mage::script::TextConsoleScript, mage::script::MouseLookScript, mage::script::RotationScript, mage::script::CharacterMotorScript, mage::script::ManhattanMotorScript, mage::script::StatsScript, mage::script::SwitchSceneScript< SceneT >, mage::script::VoxelGridAnchorScript, and mage::script::EditorScript.