33#pragma region static_functions
48#pragma region overridden_functions
51 auto init() ->
void override;
52 auto execute() ->
void override;
53 auto end() ->
void override;
56 auto render() const ->
void override;
61#pragma region CallFunctionAction_functions
67#pragma region member_variables
73#pragma region helper_functions
77#pragma region static_variables
85 :
Action(
"CallFunctionAction")
93 :
Action(
"CallFunctionAction", 0.1f, {}, initialDelay, 0.f)
94 , funcPointer(std::forward<T>(setFuncPointer))
100 float duration,
const th::Bezier& easingFunction,
A class that changes a variable over a set duration.
virtual auto ActionShowMenu() -> void
Displays a window in imgui.
Definition Action.cpp:116
float initialDelay
Delay that acts between the action being created and the action initializing.
Definition Action.h:262
virtual auto render() const -> void
Function used to draw things to screen, useful for things such as debug drawing.
Definition Action.cpp:110
float endingDelay
Delay that acts after the action has finished updating but before it has ended.
Definition Action.h:264
CallFunctionAction()=default
auto execute() -> void override
Virtual function that is called every frame to change a game object.
Definition CallFunctionAction.h:114
CallFunctionAction(const CallFunctionAction &)=default
auto init() -> void override
Virtual function that is called once, when the Action is first starting up.
Definition CallFunctionAction.h:108
~CallFunctionAction() override=default
auto operator=(const CallFunctionAction &) -> CallFunctionAction &=default
auto render() const -> void override
Function used to draw things to screen, useful for things such as debug drawing.
Definition CallFunctionAction.h:130
auto operator=(CallFunctionAction &&other) noexcept -> CallFunctionAction &=default
std::function< void()> funcPointer
Definition CallFunctionAction.h:69
CallFunctionAction(CallFunctionAction &&other) noexcept=default
auto ActionShowMenu() -> void override
Displays a window in imgui.
Definition CallFunctionAction.h:124
auto end() -> void override
Virtual function that is called once, when an Action is finished executing.
Definition CallFunctionAction.h:119