Difference between revisions of "Card Functions"
From theFarWilds
(→Methods) |
|||
| Line 8: | Line 8: | ||
string '''getName'''(); | string '''getName'''(); | ||
// returns the label of the card, e.g., "Tangler" or "Crypt Doctor" | // returns the label of the card, e.g., "Tangler" or "Crypt Doctor" | ||
| + | |||
| + | int '''getType'''(); | ||
| + | // returns the type of card: CREATURE,BUILDING,ENCHANTMENT,ITEM,SPELL | ||
Revision as of 11:58, 10 June 2010
A card object represents a TFW playing card (and all the associated properties).
Constructors
No global constructors; returned by Player.getHandCard() and Player.getDeckCard().
Methods
string getName(); // returns the label of the card, e.g., "Tangler" or "Crypt Doctor" int getType(); // returns the type of card: CREATURE,BUILDING,ENCHANTMENT,ITEM,SPELL