Class Incantation¶
Defined in File Incantation.hpp
Class Documentation¶
-
class Incantation¶
Public Functions
-
Incantation(int level, int x, int y)¶
Construct a new Incantation object.
- Parameters:
level – Contain the level of the incantation
x – Contain the position in x of the incantation
y – Contain the position in y of the incantation
-
~Incantation() = default¶
-
void AddMember(int id)¶
Add a member of to the incantation.
- Parameters:
id – Contain the id of the incantation
-
std::pair<int, int> GetPosition()¶
Get the position of the incantation.
- Returns:
std::pair<int, int>
-
void SetState(std::string &state)¶
Set the state of the incantation.
- Parameters:
state – Contain the new state of the incantation
-
Incantation(int level, int x, int y)¶