RosettaStone::SimpleTasks::IncludeTask Class Reference
IncludeTask class. More...
#include <Rosetta/Tasks/SimpleTasks/IncludeTask.hpp>
Inheritance diagram for RosettaStone::SimpleTasks::IncludeTask:

Public Member Functions | |
IncludeTask ()=default | |
Default constructor. More... | |
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) |
Static Public Member Functions | |
static std::vector< Entity * > | GetEntities (EntityType entityType, Player &player, Entity *source=nullptr, Entity *target=nullptr) |
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
IncludeTask class.
This class represents the task for including entities to be applied by another task.
Constructor & Destructor Documentation
◆ IncludeTask()
|
default |
Default constructor.
Member Function Documentation
◆ GetEntities()
|
static |
Returns a list of entities based on the type of entity.
- Parameters
-
entityType The type of entity. player The player to get hand or battlefield. source The source that indicates source entity. target The target that indicates target entity.
- Returns
- A list of entities based on the type of entity.
◆ GetTaskID()
|
overridevirtual |
The documentation for this class was generated from the following file:
- Rosetta/Tasks/SimpleTasks/IncludeTask.hpp