Game Engine
Architected a C++ game engine with a runtime reflection system - employing Chain of
Loading...
Searching...
No Matches
Fiea::Engine::Actions::ActionIncrement Class Reference

#include <ActionIncrement.h>

Inheritance diagram for Fiea::Engine::Actions::ActionIncrement:
[legend]
Collaboration diagram for Fiea::Engine::Actions::ActionIncrement:
[legend]

Public Member Functions

 ActionIncrement ()
 ActionIncrement (const ActionIncrement &rhs)=default
 ActionIncrement (ActionIncrement &&rhs) noexcept=default
ActionIncrementoperator= (const ActionIncrement &rhs)=default
ActionIncrementoperator= (ActionIncrement &&rhs) noexcept=default
 ~ActionIncrement ()=default
virtual bool InitAction () override
virtual bool RunAction () override
virtual void CleanupAction () override
Public Member Functions inherited from Fiea::Engine::Actions::Action
 Action ()
 Action (const Action &other)
 Action (Action &&other) noexcept
Actionoperator= (const Action &other)
Actionoperator= (Action &&other) noexcept
virtual ~Action ()=default
bool Update ()
Public Member Functions inherited from Fiea::Engine::Content::Attributed
 Attributed ()=delete
 Attributed (std::function< ClassDefinition()> defGenerator, const RTTI::IdType &idType)
 Constructor that initializes class attributes based on the provided class definition generator.
 Attributed (const Attributed &other)
 Copy constructor for Attributed.
 Attributed (Attributed &&other) noexcept
 Move constructor for Attributed.
Attributedoperator= (const Attributed &rhs)
 Copy assignment operator.
Attributedoperator= (Attributed &&rhs) noexcept
 Move assignment operator.
virtual ~Attributed ()=default
AttributedClone () const override
 Creates a deep copy of this Attributed object.
bool IsAttribute (const string &key)
 Checks if a given key is an attribute.
bool IsClassAttribute (const string &key)
 Checks if a given key is a class attribute.
bool IsInstanceAttribute (const string &key)
 Checks if a given key is an instance attribute.
DatumAppendInstanceAttribute (const string &key)
 Appends a new instance attribute.
std::vector< stringAttributes ()
 Retrieves all attribute names.
std::vector< stringClassAttributes ()
 Retrieves all class attribute names.
std::vector< stringInstanceAttributes ()
 Retrieves all instance attribute names.
Public Member Functions inherited from Fiea::Engine::Content::Scope
 Scope ()=default
 Scope (const Scope &rhs)
 Copy constructor.
 Scope (Scope &&rhs) noexcept
 Move constructor.
Scopeoperator= (const Scope &rhs)
 Copy assignment operator.
Scopeoperator= (Scope &&rhs) noexcept
 Move assignment operator.
virtual ~Scope ()
 Destructor. Clears the Scope.
bool operator== (const Scope &rhs) const
 Equality operator.
bool operator!= (const Scope &rhs) const
 Inequality operator.
DatumFind (const string &key)
 Finds a Datum by key.
const DatumFind (const string &key) const
 Finds a Datum by key (const version).
DatumAppend (const string &key)
 Appends a new Datum with the given key.
void RemoveDatum (const string &key)
DatumSearch (const string &key)
Datumoperator[] (const string &key)
 Overloads operator[] for accessing a Datum by key. If the key does not exist in the Scope, it is appended.
Datumoperator[] (size_t idx)
 Overloads operator[] for accessing a Datum by index. Retrieves the Datum corresponding to the given index in the ordered list.
size_t Size () const
 Returns the number of key-value pairs in the Scope.
void Clear ()
 Clears all data in the Scope.
ScopeAppendScope (const string &key, Scope *scope=nullptr)
 Appends a new Scope as a child under the specified key.
void Adopt (const string &key, Scope &child)
 Adopts an existing Scope as a child under the specified key.
ScopeGetParent () const
void SetParent (Scope &parent)
ScopeOrphan ()
 Removes this Scope from its parent.
DatumFindContainedScope (const Scope &child, size_t &idx)
 Finds the Datum that contains the specified child Scope.
const DatumFindContainedScope (const Scope &child, size_t &idx) const
 Finds the Datum that contains the specified child Scope (const version).
bool IsAncestorOf (const Scope &descendent) const
 Checks if this Scope is an ancestor of the specified descendent Scope.
bool IsDescendentOf (const Scope &ancestor) const
 Checks if this Scope is a descendent of the specified ancestor Scope.
Public Member Functions inherited from Fiea::Engine::RTTI
 RTTI ()=default
 RTTI (const RTTI &)=default
RTTIoperator= (const RTTI &)=default
 RTTI (RTTI &&) noexcept=default
RTTIoperator= (RTTI &&) noexcept=default
virtual ~RTTI ()=default
virtual IdType TypeIdInstance () const =0
virtual bool Is (IdType) const
template<typename T>
T * As ()
template<typename T>
const T * As () const
virtual std::string ToString () const
virtual bool Equals (const RTTI *rhs) const

Public Attributes

std::string _DatumKey
float _IncAmount
float _MaxVal
Public Attributes inherited from Fiea::Engine::Actions::Action
std::string _ActionName
ActionState _ActionState

Additional Inherited Members

Public Types inherited from Fiea::Engine::Actions::Action
enum  ActionState { Idle , Ongoing , Completed }
Public Types inherited from Fiea::Engine::RTTI
using IdType = std::size_t
Protected Member Functions inherited from Fiea::Engine::Actions::Action
 Action (const Fiea::Engine::Content::ClassDefinition &other, const RTTI::IdType &idType)
Protected Member Functions inherited from Fiea::Engine::Content::Scope
std::vector< const string * > GetOrderedDatums ()

Constructor & Destructor Documentation

◆ ActionIncrement() [1/3]

Fiea::Engine::Actions::ActionIncrement::ActionIncrement ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ActionIncrement() [2/3]

Fiea::Engine::Actions::ActionIncrement::ActionIncrement ( const ActionIncrement & rhs)
default
Here is the call graph for this function:

◆ ActionIncrement() [3/3]

Fiea::Engine::Actions::ActionIncrement::ActionIncrement ( ActionIncrement && rhs)
defaultnoexcept
Here is the call graph for this function:

◆ ~ActionIncrement()

Fiea::Engine::Actions::ActionIncrement::~ActionIncrement ( )
default

Member Function Documentation

◆ CleanupAction()

void Fiea::Engine::Actions::ActionIncrement::CleanupAction ( )
overridevirtual

Reimplemented from Fiea::Engine::Actions::Action.

◆ InitAction()

bool Fiea::Engine::Actions::ActionIncrement::InitAction ( )
overridevirtual

Reimplemented from Fiea::Engine::Actions::Action.

◆ operator=() [1/2]

ActionIncrement & Fiea::Engine::Actions::ActionIncrement::operator= ( ActionIncrement && rhs)
defaultnoexcept
Here is the call graph for this function:

◆ operator=() [2/2]

ActionIncrement & Fiea::Engine::Actions::ActionIncrement::operator= ( const ActionIncrement & rhs)
default
Here is the call graph for this function:

◆ RunAction()

bool Fiea::Engine::Actions::ActionIncrement::RunAction ( )
overridevirtual

Reimplemented from Fiea::Engine::Actions::Action.

Here is the call graph for this function:

Member Data Documentation

◆ _DatumKey

std::string Fiea::Engine::Actions::ActionIncrement::_DatumKey

◆ _IncAmount

float Fiea::Engine::Actions::ActionIncrement::_IncAmount

◆ _MaxVal

float Fiea::Engine::Actions::ActionIncrement::_MaxVal

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