Brunot
Loading...
Searching...
No Matches
MoveToPointAction.h
Go to the documentation of this file.
1
11// ____ __ __ __
12// /\__ _\/\ \ /\ \/\ \
13// \/_/\ \/\ \ \___ __ \ \ \_\ \ ___ __ __ ____ __
14// \ \ \ \ \ _ `\ /'__`\ \ \ _ \ / __`\/\ \/\ \ /',__\ /'__`\
15// \ \ \ \ \ \ \ \/\ __/ \ \ \ \ \/\ \L\ \ \ \_\ \/\__, `\/\ __/
16// \ \_\ \ \_\ \_\ \____\ \ \_\ \_\ \____/\ \____/\/\____/\ \____\
17// \/_/ \/_/\/_/\/____/ \/_/\/_/\/___/ \/___/ \/___/ \/____/
18
19
20
21
22
23#pragma once
24#include "Actions/Action.h"
25#include "Component/Transform.h"
26
32{
33public:
34
35#pragma region static_functions
36
37#pragma endregion
38
39 MoveToPointAction() = default;
41 auto operator=(const MoveToPointAction&) -> MoveToPointAction& = default;
42 ~MoveToPointAction() override = default;
43 MoveToPointAction(MoveToPointAction&& other) noexcept = default;
44 auto operator=(MoveToPointAction&& other) noexcept -> MoveToPointAction& = default;
45
46
49 MoveToPointAction(Point2D endingPosition, float duration, const th::Bezier& easingFunction, float initialDelay, float endingDelay);
50
51#pragma region overridden_functions
52
53
54 auto init() -> void override;
55 auto execute() -> void override;
56 auto end() -> void override;
57
58 auto ActionShowMenu() -> void override;
59 auto render() const -> void override;
60
61#pragma endregion
62
63#pragma region TranslateAction_functions
64
65#pragma endregion
66
67private:
68
69#pragma region member_variables
70
72
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.
Vector4D Point2D
Definition Transform.h:21
float initialDelay
Definition Action.h:239
float endingDelay
Definition Action.h:240
Action()=default
Point2D endingPosition
Definition MoveToPointAction.h:74
auto ActionShowMenu() -> void override
Displays a window in imgui.
Definition MoveToPointAction.cpp:59
auto operator=(const MoveToPointAction &) -> MoveToPointAction &=default
auto operator=(MoveToPointAction &&other) noexcept -> MoveToPointAction &=default
Transform * objectTransform
Definition MoveToPointAction.h:71
~MoveToPointAction() override=default
Point2D startingPosition
Definition MoveToPointAction.h:73
MoveToPointAction(MoveToPointAction &&other) noexcept=default
MoveToPointAction(const MoveToPointAction &)=default
MoveToPointAction()=default
auto execute() -> void override
Virtual function that is called every frame to change a game object.
Definition MoveToPointAction.cpp:49
auto end() -> void override
Virtual function that is called once, when an Action is finished executing.
Definition MoveToPointAction.cpp:54
auto render() const -> void override
Function used to draw things to screen, useful for things such as debug drawing.
Definition MoveToPointAction.cpp:64
auto init() -> void override
Virtual function that is called once, when the Action is first starting up.
Definition MoveToPointAction.cpp:43
Definition Transform.h:27
Definition Bezier.h:30