Difference between revisions of "Player Functions"

From theFarWilds
Jump to: navigation, search
m
Line 22: Line 22:
 
  int '''getGlory'''()
 
  int '''getGlory'''()
 
  void '''setTeam'''(int teamID);
 
  void '''setTeam'''(int teamID);
// note: teamID 0 is no team
+
// note: teamID 0 is no team

Revision as of 16:59, 26 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);
// note: teamID 0 is no team