RosettaStone::Power Class Reference
#include <Rosetta/Enchants/Power.hpp>
Public Member Functions | |
std::vector< ITask * > & | GetPowerTask () |
Enchant & | GetEnchant () |
void | ClearData () |
Clears power task and enchant. More... | |
void | AddPowerTask (ITask *task) |
void | AddEnchant (Enchant &&enchant) |
Detailed Description
Power class.
This class stores task to perform power and enchant to apply it.
Member Function Documentation
◆ AddEnchant()
void RosettaStone::Power::AddEnchant | ( | Enchant && | enchant | ) |
Adds enchant.
- Parameters
-
enchant An enchant to add.
◆ AddPowerTask()
void RosettaStone::Power::AddPowerTask | ( | ITask * | task | ) |
Adds power task to a list of power tasks.
- Parameters
-
task A pointer to power task.
◆ ClearData()
void RosettaStone::Power::ClearData | ( | ) |
Clears power task and enchant.
◆ GetEnchant()
Enchant& RosettaStone::Power::GetEnchant | ( | ) |
Returns enchant.
- Returns
- A reference to enchant.
◆ GetPowerTask()
std::vector<ITask*>& RosettaStone::Power::GetPowerTask | ( | ) |
Returns a list of power tasks.
- Returns
- A list of power tasks.
The documentation for this class was generated from the following file:
- Rosetta/Enchants/Power.hpp