RosettaStone::Spell Class Reference
#include <Rosetta/Models/Spell.hpp>
Inheritance diagram for RosettaStone::Spell:
Public Member Functions | |
| Spell ()=default | |
| Default constructor. More... | |
| Spell (Player &_owner, Card &_card) | |
| ~Spell ()=default | |
| Default destructor. More... | |
| Spell (const Spell &spell)=default | |
| Default copy constructor. More... | |
| Spell (Spell &&spell)=default | |
| Default move constructor. More... | |
| Spell & | operator= (const Spell &spell)=default |
| Default copy assignment operator. More... | |
| Spell & | operator= (Spell &&spell)=default |
| Default move assignment operator. More... | |
| void | Destroy () override |
| Destroys spell. More... | |
Public Member Functions inherited from RosettaStone::Entity | |
| Entity ()=default | |
| Default constructor. More... | |
| Entity (Player &_owner, Card &_card) | |
| virtual | ~Entity () |
| Destructor. More... | |
| Entity (const Entity &ent) | |
| Copy constructor. More... | |
| Entity (Entity &&ent) noexcept | |
| Move constructor. More... | |
| Entity & | operator= (const Entity &ent) |
| Copy assignment operator. More... | |
| Entity & | operator= (Entity &&ent) noexcept |
| Move assignment operator. More... | |
| Player & | GetOwner () const |
| void | SetOwner (Player &owner) |
| int | GetGameTag (GameTag tag) const |
| virtual void | SetGameTag (GameTag tag, int value) |
Additional Inherited Members | |
Static Public Member Functions inherited from RosettaStone::Entity | |
| static Entity * | GetFromCard (Player &player, Card &&card) |
Public Attributes inherited from RosettaStone::Entity | |
| Card | card |
| std::size_t | id = 0 |
| bool | isDestroyed = false |
Protected Attributes inherited from RosettaStone::Entity | |
| Player * | m_owner = nullptr |
| std::map< GameTag, int > | m_gameTags |
Detailed Description
Constructor & Destructor Documentation
◆ Spell() [1/4]
|
default |
Default constructor.
◆ Spell() [2/4]
Constructs spell with given _owner and _card.
- Parameters
-
_owner An owner of the card. _card A reference to the card.
◆ ~Spell()
|
default |
Default destructor.
◆ Spell() [3/4]
|
default |
Default copy constructor.
◆ Spell() [4/4]
|
default |
Default move constructor.
Member Function Documentation
◆ Destroy()
|
overridevirtual |
Destroys spell.
Reimplemented from RosettaStone::Entity.
◆ operator=() [1/2]
Default copy assignment operator.
◆ operator=() [2/2]
The documentation for this class was generated from the following file:
- Rosetta/Models/Spell.hpp
Public Member Functions inherited from
1.8.14