Brunot
Loading...
Searching...
No Matches
SetMessageEnabledAction Class Reference

Sets receive messages to either disabled or enabled. More...

#include <SetMessageEnabledAction.h>

Inheritance diagram for SetMessageEnabledAction:
[legend]
Collaboration diagram for SetMessageEnabledAction:
[legend]

Public Member Functions

 SetMessageEnabledAction ()=default
 SetMessageEnabledAction (const SetMessageEnabledAction &)=default
auto operator= (const SetMessageEnabledAction &) -> SetMessageEnabledAction &=default
 ~SetMessageEnabledAction () override=default
 SetMessageEnabledAction (SetMessageEnabledAction &&other) noexcept=default
auto operator= (SetMessageEnabledAction &&other) noexcept -> SetMessageEnabledAction &=default
 SetMessageEnabledAction (bool setIsEnabled)
 SetMessageEnabledAction (bool setIsEnabled, float initialDelay)
 SetMessageEnabledAction (bool setIsEnabled, float duration, const th::Bezier &easingFunction, float initialDelay, float endingDelay)
auto init () -> void override
 Virtual function that is called once, when the Action is first starting up.
auto execute () -> void override
 Virtual function that is called every frame to change a game object.
auto end () -> void override
 Virtual function that is called once, when an Action is finished executing.
auto ActionShowMenu () -> void override
 Displays a window in imgui.
auto render () const -> void override
 Function used to draw things to screen, useful for things such as debug drawing.
Public Member Functions inherited from Action
 Action ()=default
 Action (const Action &)=default
auto operator= (const Action &) -> Action &=default
virtual ~Action ()=default
 Action (Action &&other) noexcept=default
auto operator= (Action &&other) noexcept -> Action &=default
auto operator== (const Action &other) const -> bool
 Action (std::string name)
 Action (std::string name, float duration)
 Action (std::string name, float duration, const th::Bezier &bezierCurve, float initialDelay, float endingDelay)
auto update (float dt) -> void
 Universal update function that handles calling init, update, and end at the right time.
auto shouldRemove () const -> bool
auto getOwner () const -> Entity *
auto setOwner (Entity *newObject) -> void
auto getHasInitialized () const -> bool
auto getHasExecuted () const -> bool
auto getHasEnded () const -> bool
auto isPaused () const -> bool
auto setPaused (bool newState) -> void
auto isBlocking () const -> bool
auto setBlocking (bool newState) -> void
auto setInitialDelay (float delay) -> void
auto setEndingDelay (float delay) -> void
auto getName () -> std::string
 Function used for displaying info about what an Action does.
auto getCompletionPercentage () const -> float
 Function used to see how much the action has completed.

Private Attributes

bool setEnabled
float newInitialDelay

Additional Inherited Members

Protected Member Functions inherited from Action
auto percentageComplete () const -> float
template<typename T>
auto lerpBasedOnTime (const T &start, const T &end) -> T
Protected Attributes inherited from Action
EntitychangingObject = nullptr
std::string actionName = "BaseAction"

Detailed Description

Sets receive messages to either disabled or enabled.

@SetMessageEnabledAction.h

Constructor & Destructor Documentation

◆ SetMessageEnabledAction() [1/6]

SetMessageEnabledAction::SetMessageEnabledAction ( )
default
Here is the caller graph for this function:

◆ SetMessageEnabledAction() [2/6]

SetMessageEnabledAction::SetMessageEnabledAction ( const SetMessageEnabledAction & )
default
Here is the call graph for this function:

◆ ~SetMessageEnabledAction()

SetMessageEnabledAction::~SetMessageEnabledAction ( )
overridedefault

◆ SetMessageEnabledAction() [3/6]

SetMessageEnabledAction::SetMessageEnabledAction ( SetMessageEnabledAction && other)
defaultnoexcept
Here is the call graph for this function:

◆ SetMessageEnabledAction() [4/6]

SetMessageEnabledAction::SetMessageEnabledAction ( bool setIsEnabled)
Here is the call graph for this function:

◆ SetMessageEnabledAction() [5/6]

SetMessageEnabledAction::SetMessageEnabledAction ( bool setIsEnabled,
float initialDelay )
Here is the call graph for this function:

◆ SetMessageEnabledAction() [6/6]

SetMessageEnabledAction::SetMessageEnabledAction ( bool setIsEnabled,
float duration,
const th::Bezier & easingFunction,
float initialDelay,
float endingDelay )
Here is the call graph for this function:

Member Function Documentation

◆ ActionShowMenu()

void SetMessageEnabledAction::ActionShowMenu ( ) ->void
overridevirtual

Displays a window in imgui.

Reimplemented from Action.

Here is the call graph for this function:

◆ end()

auto SetMessageEnabledAction::end ( ) ->void
overridevirtual

Virtual function that is called once, when an Action is finished executing.

Reimplemented from Action.

◆ execute()

auto SetMessageEnabledAction::execute ( ) ->void
overridevirtual

Virtual function that is called every frame to change a game object.

Reimplemented from Action.

◆ init()

auto SetMessageEnabledAction::init ( ) ->void
overridevirtual

Virtual function that is called once, when the Action is first starting up.

Reimplemented from Action.

Here is the call graph for this function:

◆ operator=() [1/2]

auto SetMessageEnabledAction::operator= ( const SetMessageEnabledAction & ) ->SetMessageEnabledAction &=default
default
Here is the call graph for this function:

◆ operator=() [2/2]

auto SetMessageEnabledAction::operator= ( SetMessageEnabledAction && other) ->SetMessageEnabledAction &=default
defaultnoexcept
Here is the call graph for this function:

◆ render()

void SetMessageEnabledAction::render ( ) const->void
overridevirtual

Function used to draw things to screen, useful for things such as debug drawing.

Reimplemented from Action.

Here is the call graph for this function:

Member Data Documentation

◆ newInitialDelay

float SetMessageEnabledAction::newInitialDelay
private

◆ setEnabled

bool SetMessageEnabledAction::setEnabled
private

The documentation for this class was generated from the following files: