jskat.player.AIPlayerMJL
Class OpponentPlayer

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

public class OpponentPlayer
extends java.lang.Object
implements CardPlayer

Author:
Markus J. Luzius

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

Constructor Detail

OpponentPlayer

public OpponentPlayer(int id)
Constructor

Parameters:
id - playerID
Method Detail

playNextCard

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

Specified by:
playNextCard in interface CardPlayer
Parameters:
cards - hand of the player
trickInfo - 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()
Getter for playerID

Specified by:
getPlayerID in interface CardPlayer
Returns:
playerID

setPlayerID

public void setPlayerID(int i)
Setter for playerID

Specified by:
setPlayerID in interface CardPlayer
Parameters:
i -