GigaPasjans
Loading...
Searching...
No Matches
Game::CardRenderer Class Reference

Handles the visual representation of cards and stacks. More...

#include <CardRenderer.h>

Collaboration diagram for Game::CardRenderer:

Public Member Functions

void Initialize (::Game::Deck *deck)
 Initializes the renderer with a given deck.
 
void RegisterComponents (Andromenda::Surface *surface)
 Registers rendering components to the surface.
 
void Update ()
 Updates the state of all visual components.
 

Public Attributes

std::unordered_map< Card *, UniqueRef< CardComponent > > Tableau
 Maps cards to their tableau visual components.
 
std::unordered_map< CardStack *, UniqueRef< FoundationComponent > > Foundation
 Maps card stacks to their foundation components.
 
std::unordered_map< CardStack *, UniqueRef< FragmentComponent > > Fragments
 Maps card stacks to their fragment components.
 
UniqueRef< StockComponentStock
 Visual component representing the stock pile.
 
DeckDeck
 Pointer to the associated card deck.
 
Andromenda::SurfaceSurface
 Rendering surface used for drawing components.
 

Detailed Description

Handles the visual representation of cards and stacks.


The documentation for this class was generated from the following files: