Player Functions

From theFarWilds
Revision as of 18:53, 19 March 2010 by Jed (Talk | contribs)

Jump to: navigation, search

Scripting Player Functions are called on the Player object. For example

Player player=getAIPlayer(0);
player.drawCard();

List of functions:

bool isValid();
void addToHand(string cardName)
void addToDeck(string cardName,int index)
Card getDeckCard(int index)
Card getHandCard(int index)
void removeHandCard(int index)
void removeDeckCard(int index)
void drawCard()
void shuffleDeck()
int deckSize()
int handSize()
void addFlux(int delta)
void addGlory(int delta)
int getFlux()
int getGlory()