Difference between revisions of "Player Functions"

From theFarWilds
Jump to: navigation, search
Line 21: Line 21:
 
  int '''getFlux'''()
 
  int '''getFlux'''()
 
  int '''getGlory'''()
 
  int '''getGlory'''()
 +
void '''setTeam'''(int teamID);

Revision as of 20:45, 23 March 2010

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);