Difference between revisions of "Card Functions"

From theFarWilds
Jump to: navigation, search
(New page: Scripting Card Functions are called on the Card object. For example Card card=getAIPlayer(0).getHandCard(0); if(card.getName()=="Tangler") { // ... List of functions: string '''g...)
 
(Methods)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Scripting]]
+
[[Category:Scripts]]
Card Functions are called on the Card object. For example
+
A card object represents a TFW playing card (and all the associated properties).
  
Card card=getAIPlayer(0).getHandCard(0);
+
== Constructors ==
if(card.getName()=="Tangler")
+
No global constructors; returned by Player.getHandCard() and Player.getDeckCard().
{ // ...
+
  
List of functions:
+
== Methods ==
 
  string '''getName'''();
 
  string '''getName'''();
 +
// returns the title of the card, e.g., "Tangler" or "Crypt Doctor"
 +
 +
int '''getType'''();
 +
// returns the type of card: CREATURE,BUILDING,ENCHANTMENT,ITEM,SPELL
 +
 +
int '''getID'''();
 +
// returns the ID of the Card

Latest revision as of 13:30, 10 June 2010

A card object represents a TFW playing card (and all the associated properties).

Constructors

No global constructors; returned by Player.getHandCard() and Player.getDeckCard().

Methods

string getName();
// returns the title of the card, e.g., "Tangler" or "Crypt Doctor"

int getType();
// returns the type of card: CREATURE,BUILDING,ENCHANTMENT,ITEM,SPELL

int getID();
// returns the ID of the Card