Represents drawing the next card from the stock pile.
More...
#include <InteractionManager.h>
|
| void | Do () override |
| | Executes the interaction.
|
| |
| void | Undo () override |
| | Reverts the interaction.
|
| |
| void | Serialize (nlohmann::json &obj) override |
| | Serializes the stock interaction to JSON.
|
| |
|
|
static Card * | GetCard () |
| | Gets the currently selected card from the stock.
|
| |
|
static int32 | GetStockSize () |
| | Returns the current size of the stock stack.
|
| |
|
static StockNextCardInteraction * | Load (nlohmann::json &obj) |
| | Loads a stock interaction from JSON.
|
| |
|
|
int32 | Index |
| | Index of the card before the draw.
|
| |
|
int32 | NewIndex |
| | Index of the card after the draw.
|
| |
|
InteractionType | Type |
| | Type of the interaction.
|
| |
|
|
static int32 | StackIndex = 0 |
| | Current index in the stock pile.
|
| |
Represents drawing the next card from the stock pile.
◆ Do()
| void Game::StockNextCardInteraction::Do |
( |
| ) |
|
|
overridevirtual |
◆ Serialize()
| void Game::StockNextCardInteraction::Serialize |
( |
nlohmann::json & | obj | ) |
|
|
overridevirtual |
◆ Undo()
| void Game::StockNextCardInteraction::Undo |
( |
| ) |
|
|
overridevirtual |
The documentation for this struct was generated from the following files: