Brunot
Loading...
Searching...
No Matches
LoadSceneAction.h
Go to the documentation of this file.
1
11// ____ __ __ __
12// /\__ _\/\ \ /\ \/\ \
13// \/_/\ \/\ \ \___ __ \ \ \_\ \ ___ __ __ ____ __
14// \ \ \ \ \ _ `\ /'__`\ \ \ _ \ / __`\/\ \/\ \ /',__\ /'__`\
15// \ \ \ \ \ \ \ \/\ __/ \ \ \ \ \/\ \L\ \ \ \_\ \/\__, `\/\ __/
16// \ \_\ \ \_\ \_\ \____\ \ \_\ \_\ \____/\ \____/\/\____/\ \____\
17// \/_/ \/_/\/_/\/____/ \/_/\/_/\/___/ \/___/ \/___/ \/____/
18
19
20
21
22#pragma once
23#include "Actions/Action.h"
24
29class LoadSceneAction : public Action
30{
31public:
32
33#pragma region static_functions
34
35#pragma endregion
36
37 LoadSceneAction() = default;
39 auto operator=(const LoadSceneAction&) -> LoadSceneAction& = default;
40 ~LoadSceneAction() override = default;
41 LoadSceneAction(LoadSceneAction&& other) noexcept = default;
42 auto operator=(LoadSceneAction&& other) noexcept -> LoadSceneAction& = default;
43
44 // I have to comment this one out or else it throws an error
45 LoadSceneAction(std::string sceneToLoad);
46 LoadSceneAction(std::string sceneToLoad, float duration);
47 LoadSceneAction(std::string sceneToLoad, 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 ChangeSceneAction_functions
63
64#pragma endregion
65
66private:
67
68#pragma region member_variables
69
70 std::string sceneToLoad;
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
LoadSceneAction()=default
LoadSceneAction(const LoadSceneAction &)=default
std::string sceneToLoad
Definition LoadSceneAction.h:70
auto end() -> void override
Virtual function that is called once, when an Action is finished executing.
Definition LoadSceneAction.cpp:55
auto init() -> void override
Virtual function that is called once, when the Action is first starting up.
Definition LoadSceneAction.cpp:47
auto execute() -> void override
Virtual function that is called every frame to change a game object.
Definition LoadSceneAction.cpp:51
auto operator=(LoadSceneAction &&other) noexcept -> LoadSceneAction &=default
auto operator=(const LoadSceneAction &) -> LoadSceneAction &=default
~LoadSceneAction() override=default
auto render() const -> void override
Function used to draw things to screen, useful for things such as debug drawing.
Definition LoadSceneAction.cpp:65
LoadSceneAction(LoadSceneAction &&other) noexcept=default
auto ActionShowMenu() -> void override
Displays a window in imgui.
Definition LoadSceneAction.cpp:60
Definition Bezier.h:30