26template<std::derived_from<Action> a>
31#pragma region static_functions
62 a intendedAction,
float duration);
73 a intendedAction,
float duration,
const th::Bezier& easingFunction,
76#pragma region overridden_functions
79 auto init() ->
void override;
80 auto execute() ->
void override;
81 auto end() ->
void override;
84 auto render() const ->
void override;
89#pragma region CreateAnimationSequenceAction_functions
95#pragma region member_variables
97 std::vector<Entity*>
batch = {};
104#pragma region helper_functions
108#pragma region static_variables
114template <std::derived_from<Action> a>
116 :
Action(
"CreateAnimationSequenceAction")
117 ,
batch(intendedTargets)
125template <std::derived_from<Action> a>
127 :
Action(
"CreateAnimationSequenceAction", duration)
128 ,
batch(intendedTargets)
136template <std::derived_from<Action> a>
140 ,
batch(intendedTargets)
148template <std::derived_from<Action> a>
153template <std::derived_from<Action> a>
158template <std::derived_from<Action> a>
163template <std::derived_from<Action> a>
169template <std::derived_from<Action> a>
A class that changes a variable over a set duration.
Holds functions that assist in sequences, whether it's adding actions with calculated delays,...
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
CreateAnimationSequenceAction(const CreateAnimationSequenceAction &)=default
CreateAnimationSequenceAction(CreateAnimationSequenceAction &&other) noexcept=default
int group
Definition CreateAnimationSequenceAction.h:99
std::vector< Entity * > batch
Definition CreateAnimationSequenceAction.h:97
auto ActionShowMenu() -> void override
Displays a window in imgui.
Definition CreateAnimationSequenceAction.h:164
auto end() -> void override
Virtual function that is called once, when an Action is finished executing.
Definition CreateAnimationSequenceAction.h:159
auto render() const -> void override
Function used to draw things to screen, useful for things such as debug drawing.
Definition CreateAnimationSequenceAction.h:170
auto init() -> void override
Virtual function that is called once, when the Action is first starting up.
Definition CreateAnimationSequenceAction.h:149
float targetInitialDelay
Definition CreateAnimationSequenceAction.h:98
CreateAnimationSequenceAction()=default
auto execute() -> void override
Virtual function that is called every frame to change a game object.
Definition CreateAnimationSequenceAction.h:154
auto operator=(CreateAnimationSequenceAction &&other) noexcept -> CreateAnimationSequenceAction &=default
std::vector< a > actionToAdd
Definition CreateAnimationSequenceAction.h:100
auto operator=(const CreateAnimationSequenceAction &) -> CreateAnimationSequenceAction &=default
~CreateAnimationSequenceAction() override=default
Holds functions that are useful to synchronize actions such that specific visual effects occur.
Definition AnimationSequence.h:31