Represents an interaction where multiple cards are moved.
More...
#include <InteractionManager.h>
|
|
| BulkCardInteraction (const std::vector< Card * > &cards, CardStack *stack) |
| |
| void | Do () override |
| | Executes the interaction.
|
| |
| void | Undo () override |
| | Reverts the interaction.
|
| |
| void | Serialize (nlohmann::json &obj) override |
| | Serializes the bulk interaction to JSON.
|
| |
|
|
std::vector< Card * > | Cards |
| | Cards involved in the interaction.
|
| |
|
CardStack * | Stack |
| | Destination stack.
|
| |
|
CardStack * | PreviousStack |
| | Stack from which the cards originated.
|
| |
|
int32 | PreviousIndex |
| | Index of the first moved card in the original stack.
|
| |
|
int32 | FlippedCardIndex = -1 |
| | Index of any card that was flipped due to this move.
|
| |
|
InteractionType | Type |
| | Type of the interaction.
|
| |
|
|
static std::vector< Card * > | GrabbedCards |
| | Cards currently being moved (global state).
|
| |
Represents an interaction where multiple cards are moved.
◆ Do()
| void Game::BulkCardInteraction::Do |
( |
| ) |
|
|
overridevirtual |
◆ Serialize()
| void Game::BulkCardInteraction::Serialize |
( |
nlohmann::json & | obj | ) |
|
|
overridevirtual |
◆ Undo()
| void Game::BulkCardInteraction::Undo |
( |
| ) |
|
|
overridevirtual |
The documentation for this struct was generated from the following files: