|
CardGame
Rogue-like card videogame
|
Interface for card instance creation. More...
#include <ICardFactory.h>
Public Member Functions | |
| virtual std::unique_ptr< CardInstance > | makeSingleCard (const std::string &cardId) const =0 |
| Creates a new CardInstance identified by the given card ID. | |
| virtual | ~ICardFactory ()=default |
| Virtual destructor. | |
Interface for card instance creation.
ICardFactory defines the contract used by runtime systems (e.g., DeckCombat) to create CardInstances without depending on a concrete factory implementation.
|
virtualdefault |
Virtual destructor.
|
pure virtual |
Creates a new CardInstance identified by the given card ID.
| cardId | Identifier of the card to instantiate. |
Implemented in CardFactory.