RosettaStone::DoUntil Class Reference
#include <Rosetta/Tasks/TaskWrapper.hpp>
Inheritance diagram for RosettaStone::DoUntil:

Public Member Functions | |
DoUntil (ITask &&task, std::function< bool(TaskStatus)> &&condition) | |
DoUntil (ITask &&task, TaskStatus id) | |
TaskID | GetTaskID () const override |
![]() | |
ITask ()=default | |
Default constructor. More... | |
ITask (EntityType entityType) | |
ITask (Entity *source, Entity *target) | |
ITask (EntityType entityType, Entity *source, Entity *target) | |
virtual | ~ITask ()=default |
Default destructor. More... | |
ITask (const ITask &task)=default | |
Default copy constructor. More... | |
ITask (ITask &&task)=default | |
Default move constructor. More... | |
ITask & | operator= (const ITask &task)=default |
Default copy assignment operator. More... | |
ITask & | operator= (ITask &&task)=default |
Default move assignment operator. More... | |
EntityType | GetEntityType () const |
void | SetSource (Entity *source) |
void | SetTarget (Entity *target) |
TaskStatus | Run (Player &player) |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static constexpr bool | isTask |
![]() | |
EntityType | m_entityType = EntityType::EMPTY |
Entity * | m_source = nullptr |
Entity * | m_target = nullptr |
Detailed Description
DoUntil class.
This class represents the task that is infinite-loop until completes.
Constructor & Destructor Documentation
◆ DoUntil() [1/2]
RosettaStone::DoUntil::DoUntil | ( | ITask && | task, |
std::function< bool(TaskStatus)> && | condition | ||
) |
Constructs task with given task
and condition
.
- Parameters
-
task The task that is infinite-loop until completes. condition The condition under which the task completes.
◆ DoUntil() [2/2]
RosettaStone::DoUntil::DoUntil | ( | ITask && | task, |
TaskStatus | id | ||
) |
Constructs task with given task
and id
.
- Parameters
-
task The task that is infinite-loop until completes. id The condition whether returned TaskMeta::status is equal to id.
Member Function Documentation
◆ GetTaskID()
|
overridevirtual |
The documentation for this class was generated from the following file:
- Rosetta/Tasks/TaskWrapper.hpp