|
GigaPasjans
|
Base interface for all interaction types. More...
#include <InteractionManager.h>

Public Member Functions | |
| virtual void | Do () |
| Executes the interaction. | |
| virtual void | Undo () |
| Reverts the interaction. | |
| virtual void | Serialize (nlohmann::json &obj) |
| Serializes the interaction to JSON. | |
Public Attributes | |
| InteractionType | Type |
| Type of the interaction. | |
Base interface for all interaction types.
|
inlinevirtual |
Executes the interaction.
Reimplemented in Game::BulkCardInteraction, Game::CardInteraction, and Game::StockNextCardInteraction.
|
inlinevirtual |
Serializes the interaction to JSON.
Reimplemented in Game::BulkCardInteraction, Game::CardInteraction, and Game::StockNextCardInteraction.
|
inlinevirtual |
Reverts the interaction.
Reimplemented in Game::BulkCardInteraction, Game::CardInteraction, and Game::StockNextCardInteraction.