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