jskat.player.AIPlayerRND
Class AIPlayerRND

java.lang.Object
  extended by jskat.player.JSkatPlayerImpl
      extended by jskat.player.AIPlayerRND.AIPlayerRND
All Implemented Interfaces:
JSkatPlayer

public class AIPlayerRND
extends JSkatPlayerImpl
implements JSkatPlayer


Field Summary
 
Fields inherited from class jskat.player.JSkatPlayerImpl
cards, currGameType, currTrump, forehandPlayer, handGame, ouvertGame, playerID, playerName, playerState, singlePlayer, skat
 
Constructor Summary
AIPlayerRND()
          Creates a new instance of SkatPlayer
AIPlayerRND(int playerID)
          Creates a new instance of SkatPlayer
AIPlayerRND(int playerID, java.lang.String playerName)
          Creates a new instance of SkatPlayer
 
Method Summary
 GameAnnouncement announceGame()
          Asks the player for the game he wants to play
 boolean bidMore(int currBidValue)
          Asks the player whether it wants to bid higher or not
 boolean isAIPlayer()
           
 boolean isHumanPlayer()
           
 boolean lookIntoSkat(boolean isRamsch)
          Check if you want to look in the skat
 Card playCard(CardVector trick)
          Get next Card to play
 void showTrick(CardVector trick, int trickWinner)
          Makes the current trick known to the players when it is complete
 void takeRamschSkat(CardVector skat, boolean jacksAllowed)
          Take the skat in a ramsch round
 
Methods inherited from class jskat.player.JSkatPlayerImpl
cardPlayed, getCard, getCardVector, getPlayerID, getPlayerName, newGame, playNextCard, removeCard, removeCard, removeCard, setPlayerID, setPlayerName, setState, setUpBidding, sortCards, startGame, takeCard, takeSkat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jskat.player.JSkatPlayer
cardPlayed, getPlayerID, getPlayerName, newGame, playNextCard, removeCard, removeCard, removeCard, setPlayerID, setPlayerName, setUpBidding, startGame, takeCard, takeSkat
 

Constructor Detail

AIPlayerRND

public AIPlayerRND(int playerID)
Creates a new instance of SkatPlayer


AIPlayerRND

public AIPlayerRND()
Creates a new instance of SkatPlayer


AIPlayerRND

public AIPlayerRND(int playerID,
                   java.lang.String playerName)
Creates a new instance of SkatPlayer

Method Detail

takeRamschSkat

public void takeRamschSkat(CardVector skat,
                           boolean jacksAllowed)
Description copied from interface: JSkatPlayer
Take the skat in a ramsch round

Specified by:
takeRamschSkat in interface JSkatPlayer

lookIntoSkat

public boolean lookIntoSkat(boolean isRamsch)
Description copied from interface: JSkatPlayer
Check if you want to look in the skat

Specified by:
lookIntoSkat in interface JSkatPlayer

announceGame

public GameAnnouncement announceGame()
Description copied from interface: JSkatPlayer
Asks the player for the game he wants to play

Specified by:
announceGame in interface JSkatPlayer

bidMore

public boolean bidMore(int currBidValue)
Description copied from interface: JSkatPlayer
Asks the player whether it wants to bid higher or not

Specified by:
bidMore in interface JSkatPlayer

playCard

public Card playCard(CardVector trick)
Description copied from interface: JSkatPlayer
Get next Card to play

Specified by:
playCard in interface JSkatPlayer

showTrick

public void showTrick(CardVector trick,
                      int trickWinner)
Description copied from class: JSkatPlayerImpl
Makes the current trick known to the players when it is complete

Specified by:
showTrick in interface JSkatPlayer
Specified by:
showTrick in class JSkatPlayerImpl
Parameters:
trick - The CardVector of the current trick
trickWinner - The trick winner

isAIPlayer

public boolean isAIPlayer()
Specified by:
isAIPlayer in interface JSkatPlayer
Returns:
true, if the player is an AI player

isHumanPlayer

public boolean isHumanPlayer()
Specified by:
isHumanPlayer in interface JSkatPlayer
Returns:
true, if the player is a human player