#include <manhattan_motor_script.hpp>
◆ ManhattanMotorScript() [1/3]
mage::script::ManhattanMotorScript::ManhattanMotorScript |
( |
| ) |
|
◆ ManhattanMotorScript() [2/3]
◆ ManhattanMotorScript() [3/3]
◆ ~ManhattanMotorScript()
mage::script::ManhattanMotorScript::~ManhattanMotorScript |
( |
| ) |
|
|
virtualdefault |
◆ GetVelocity()
F32 mage::script::ManhattanMotorScript::GetVelocity |
( |
| ) |
const |
|
noexcept |
◆ Load()
void mage::script::ManhattanMotorScript::Load |
( |
[[maybe_unused] ] Engine & |
engine | ) |
|
|
overridevirtual |
Loads this behavior script. Allows this behavior script to preform any pre-processing.
- Parameters
-
[in,out] | engine | A reference to the engine. |
- Exceptions
-
Exception | Failed to load this behavior script. |
Reimplemented from mage::BehaviorScript.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ SetVelocity()
void mage::script::ManhattanMotorScript::SetVelocity |
( |
F32 |
velocity | ) |
|
|
noexcept |
◆ Update()
void mage::script::ManhattanMotorScript::Update |
( |
[[maybe_unused] ] Engine & |
engine | ) |
|
|
overridevirtual |
Updates this behavior script.
This method is called once per frame.
- Parameters
-
[in,out] | engine | A reference to the engine. |
- Exceptions
-
Exception | Failed to update this behavior script. |
Reimplemented from mage::BehaviorScript.
◆ m_velocity
F32 mage::script::ManhattanMotorScript::m_velocity |
|
private |