Card Functions

From theFarWilds
Revision as of 13:30, 10 June 2010 by Jed (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 title of the card, e.g., "Tangler" or "Crypt Doctor"

int getType();
// returns the type of card: CREATURE,BUILDING,ENCHANTMENT,ITEM,SPELL

int getID();
// returns the ID of the Card