Difference between revisions of "Player Functions"
From theFarWilds
(→Methods) |
|||
Line 9: | Line 9: | ||
== Methods == | == Methods == | ||
bool '''isValid'''(); | bool '''isValid'''(); | ||
+ | |||
+ | bool '''isHuman'''(); | ||
void '''addToHand'''( string cardName ); | void '''addToHand'''( string cardName ); |
Revision as of 02:04, 13 April 2010
Each player object represents a human or ai player.
Constructors
Player getAIPlayer( int index ); Player getHumanPlayer( int index );
Methods
bool isValid(); bool isHuman(); 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 ); // set to zero for no team