Difference between revisions of "Player Functions"

From theFarWilds
Jump to: navigation, search
(New page: 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 ...)
 
Line 6: Line 6:
  
 
List of functions:
 
List of functions:
  bool isValid();
+
  bool '''isValid'''();
  void addToHand(string cardName)
+
  void '''addToHand'''(string cardName)
  void addToDeck(string cardName,int index)
+
  void '''addToDeck'''(string cardName,int index)
  Card getDeckCard(int index)
+
  Card '''getDeckCard'''(int index)
  Card getHandCard(int index)
+
  Card '''getHandCard'''(int index)
  void removeHandCard(int index)
+
  void '''removeHandCard'''(int index)
  void removeDeckCard(int index)
+
  void '''removeDeckCard'''(int index)
  void drawCard()
+
  void '''drawCard'''()
  int deckSize()
+
void '''shuffleDeck'''()
  int handSize()
+
  int '''deckSize'''()
  void addFlux(int delta)
+
  int '''handSize'''()
  void addGlory(int delta)
+
  void '''addFlux'''(int delta)
  int getFlux()
+
  void '''addGlory'''(int delta)
  int getGlory()
+
  int '''getFlux'''()
 +
  int '''getGlory'''()

Revision as of 18:53, 19 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()