jskat.player.AIPlayerMJL
Class SinglePlayer

java.lang.Object
  extended by jskat.player.AIPlayerMJL.SinglePlayer
All Implemented Interfaces:
CardPlayer

public class SinglePlayer
extends java.lang.Object
implements CardPlayer

Author:
Markus J. Luzius

Constructor Summary
SinglePlayer(int id)
          Constructor
 
Method Summary
 int getPlayerID()
          Gets the player ID
 int playNextCard(CardVector cards, TrickInfo trick)
          Gets the next card, that the player wants to play
 void setPlayerID(int i)
          Sets the player ID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinglePlayer

public SinglePlayer(int id)
Constructor

Parameters:
id - playerID
Method Detail

playNextCard

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

Specified by:
playNextCard in interface CardPlayer
Parameters:
cards - hand of the player
trick - all necessary information about the trick
Returns:
index of the card to play
See Also:
CardPlayer.playNextCard(jskat.share.CardVector, jskat.player.AIPlayerMJL.TrickInfo)

getPlayerID

public int getPlayerID()
Gets the player ID

Specified by:
getPlayerID in interface CardPlayer
Returns:
player id

setPlayerID

public void setPlayerID(int i)
Sets the player ID

Specified by:
setPlayerID in interface CardPlayer
Parameters:
i -