Player Functions

From theFarWilds
Revision as of 16:59, 26 March 2010 by Altren (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()
void setTeam(int teamID);
// note: teamID 0 is no team