Brunot
Loading...
Searching...
No Matches
SetMessageEnabledAction.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
29{
30public:
31
32#pragma region static_functions
33
34#pragma endregion
35
39 ~SetMessageEnabledAction() override = default;
41 auto operator=(SetMessageEnabledAction&& other) noexcept -> SetMessageEnabledAction& = default;
42
43 // I have to comment this one out or else it throws an error
44 SetMessageEnabledAction(bool setIsEnabled);
45 SetMessageEnabledAction(bool setIsEnabled, float initialDelay);
46 SetMessageEnabledAction(bool setIsEnabled, float duration, const th::Bezier& easingFunction, float initialDelay, float endingDelay);
47
48#pragma region overridden_functions
49
50
51 auto init() -> void override;
52 auto execute() -> void override;
53 auto end() -> void override;
54
55 auto ActionShowMenu() -> void override;
56 auto render() const -> void override;
57
58
59#pragma endregion
60
61#pragma region SetMessageEnabledAction_functions
62
63#pragma endregion
64
65private:
66
67#pragma region member_variables
68
71
72#pragma endregion
73
74#pragma region helper_functions
75
76 #pragma endregion
77
78#pragma region static_variables
79
80#pragma endregion
81
82};
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 ActionShowMenu() -> void override
Displays a window in imgui.
Definition SetMessageEnabledAction.cpp:65
auto render() const -> void override
Function used to draw things to screen, useful for things such as debug drawing.
Definition SetMessageEnabledAction.cpp:70
bool setEnabled
Definition SetMessageEnabledAction.h:69
auto init() -> void override
Virtual function that is called once, when the Action is first starting up.
Definition SetMessageEnabledAction.cpp:51
SetMessageEnabledAction(SetMessageEnabledAction &&other) noexcept=default
float newInitialDelay
Definition SetMessageEnabledAction.h:70
SetMessageEnabledAction()=default
~SetMessageEnabledAction() override=default
auto operator=(const SetMessageEnabledAction &) -> SetMessageEnabledAction &=default
auto end() -> void override
Virtual function that is called once, when an Action is finished executing.
Definition SetMessageEnabledAction.cpp:61
auto execute() -> void override
Virtual function that is called every frame to change a game object.
Definition SetMessageEnabledAction.cpp:57
SetMessageEnabledAction(const SetMessageEnabledAction &)=default
auto operator=(SetMessageEnabledAction &&other) noexcept -> SetMessageEnabledAction &=default
Definition Bezier.h:30