jskat.player.AIPlayerMJL
Interface CardPlayer

All Known Implementing Classes:
OpponentPlayer, RamschPlayer, SinglePlayer

public interface CardPlayer

Author:
Markus J. Luzius

Method Summary
 int getPlayerID()
           
 int playNextCard(CardVector cards, TrickInfo trickInfo)
          Gets the next card, that the player wants to play
 void setPlayerID(int i)
           
 

Method Detail

playNextCard

int playNextCard(CardVector cards,
                 TrickInfo trickInfo)
Gets the next card, that the player wants to play

Parameters:
cards - hand of the player
trickInfo - all necessary information about the trick
Returns:
index of the card to play

getPlayerID

int getPlayerID()
Returns:
player id

setPlayerID

void setPlayerID(int i)
Parameters:
i -