Brunot
Loading...
Searching...
No Matches
ScaleEntityAction.h
Go to the documentation of this file.
1
12// ____ __ __ __
13// /\__ _\/\ \ /\ \/\ \
14// \/_/\ \/\ \ \___ __ \ \ \_\ \ ___ __ __ ____ __
15// \ \ \ \ \ _ `\ /'__`\ \ \ _ \ / __`\/\ \/\ \ /',__\ /'__`\
16// \ \ \ \ \ \ \ \/\ __/ \ \ \ \ \/\ \L\ \ \ \_\ \/\__, `\/\ __/
17// \ \_\ \ \_\ \_\ \____\ \ \_\ \_\ \____/\ \____/\/\____/\ \____\
18// \/_/ \/_/\/_/\/____/ \/_/\/_/\/___/ \/___/ \/___/ \/____/
19
20
21#pragma once
22#include "Actions/Action.h"
23#include "Component/Transform.h"
24
30{
31public:
32
33#pragma region static_functions
34
35#pragma endregion
36
37 ScaleEntityAction() = default;
39 auto operator=(const ScaleEntityAction&) -> ScaleEntityAction& = default;
40 ~ScaleEntityAction() override = default;
41 ScaleEntityAction(ScaleEntityAction&& other) noexcept = default;
42 auto operator=(ScaleEntityAction&& other) noexcept -> ScaleEntityAction& = default;
43
44 // I have to comment this one out or else it throws an error
45 ScaleEntityAction(Vector4D endingValue);
46 ScaleEntityAction(Vector4D endingValue, float duration);
47 ScaleEntityAction(Vector4D endingValue, float duration, const th::Bezier& easingFunction, float initialDelay, float endingDelay);
48
49#pragma region overridden_functions
50
51
52 auto init() -> void override;
53 auto execute() -> void override;
54 auto end() -> void override;
55
56 auto ActionShowMenu() -> void override;
57 auto render() const -> void override;
58
59
60#pragma endregion
61
62#pragma region ScaleEntityAction_functions
63
64#pragma endregion
65
66private:
67
68#pragma region member_variables
69
71
74
75#pragma endregion
76
77#pragma region helper_functions
78
79 #pragma endregion
80
81#pragma region static_variables
82
83#pragma endregion
84
85};
A class that changes a variable over a set duration.
float initialDelay
Delay that acts between the action being created and the action initializing.
Definition Action.h:262
float endingDelay
Delay that acts after the action has finished updating but before it has ended.
Definition Action.h:264
Action()=default
~ScaleEntityAction() override=default
Vector4D startingScale
Definition ScaleEntityAction.h:72
ScaleEntityAction(ScaleEntityAction &&other) noexcept=default
auto execute() -> void override
Virtual function that is called every frame to change a game object.
Definition ScaleEntityAction.cpp:56
auto operator=(ScaleEntityAction &&other) noexcept -> ScaleEntityAction &=default
auto ActionShowMenu() -> void override
Displays a window in imgui.
Definition ScaleEntityAction.cpp:66
auto render() const -> void override
Function used to draw things to screen, useful for things such as debug drawing.
Definition ScaleEntityAction.cpp:71
Vector4D endingScale
Definition ScaleEntityAction.h:73
ScaleEntityAction()=default
auto end() -> void override
Virtual function that is called once, when an Action is finished executing.
Definition ScaleEntityAction.cpp:62
auto init() -> void override
Virtual function that is called once, when the Action is first starting up.
Definition ScaleEntityAction.cpp:47
ScaleEntityAction(const ScaleEntityAction &)=default
Transform * objectTransform
Definition ScaleEntityAction.h:70
auto operator=(const ScaleEntityAction &) -> ScaleEntityAction &=default
Definition Transform.h:28
Definition Vector4D.h:28
Definition Bezier.h:30