BankData

Describes a stack of cards to be drawn in the BankUI.  If a RuleSet adds additional resource cards or another type of cards to the game, it is important that the user have a visual representation of how many of those cards are left in the bank.  The struct BankData provides a way for RuleSets to detail to the BankUI not only what image to use to draw the card stack, but also where in the Game data the current number of cards in that stack are located.

NOTE: BankData should be created via the <IMPLEMENT_BANK_DATA> macro in <RuleSetDatabase>.

Project

RulesCore

Include

BankData.h

Summary
Describes a stack of cards to be drawn in the BankUI.
The BankData constructor.
The location in the Game IntHash map where the card amount data is stored.
The type of data within the data location.
The ImageSet key for the group of images that the card image resides in.
The name of the image within the ImageSet group key.

Constructors

BankData

BankData(const wxString &loc,
const wxString &type,
const wxString &key,
const wxString &name) : mDataLocation(loc), mDataType(type), mImageKey(key), mImageName(name)

The BankData constructor.  Stores the given locations of data and image information.

Parameters

locThe location of the bank data in the Game IntHash.
typeThe type of bank data within the location.
keyThe ImageSet key of the image to draw the card stack.
nameThe image name of the image to draw the card stack.

Variables

mDataLocation

wxString mDataLocation

The location in the Game IntHash map where the card amount data is stored.

mDataType

wxString mDataType

The type of data within the data location.  It must be an existing hash entry in the IntHash specified by mDataLocation, or an error message will be thrown to the screen by the Data class.

mImageKey

wxString mImageKey

The ImageSet key for the group of images that the card image resides in.

mImageName

wxString mImageName

The name of the image within the ImageSet group key.

Displays stacks of remaining bank cards.
BankData(const wxString &loc,
const wxString &type,
const wxString &key,
const wxString &name) : mDataLocation(loc), mDataType(type), mImageKey(key), mImageName(name)
The BankData constructor.
wxString mDataLocation
The location in the Game IntHash map where the card amount data is stored.
Still volatile.
wxString mDataType
The type of data within the data location.
wxString mImageKey
The ImageSet key for the group of images that the card image resides in.
A repository of knowledge about a .tex file.
wxString mImageName
The name of the image within the ImageSet group key.
A repository of all things rules-related.
RulesCore is the HOSS of Cities3D.
Stores data of many different kinds in string-based hash maps.