|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjskat.player.JSkatPlayerImpl
jskat.player.HumanPlayer
public class HumanPlayer
The JSkat Player
| Field Summary |
|---|
| Fields inherited from class jskat.player.JSkatPlayerImpl |
|---|
cards, currGameType, currTrump, forehandPlayer, handGame, log, ouvertGame, playerID, playerName, playerState, singlePlayer, skat |
| Constructor Summary | |
|---|---|
HumanPlayer(int playerID)
Creates a new instance of SkatPlayer |
|
HumanPlayer(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)
This method should wait for human player |
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 |
| Constructor Detail |
|---|
public HumanPlayer(int playerID)
public HumanPlayer(int playerID,
java.lang.String playerName)
| Method Detail |
|---|
public boolean bidMore(int currBidValue)
JSkatPlayer
public GameAnnouncement announceGame()
JSkatPlayer
public Card playCard(CardVector trick)
public void takeRamschSkat(CardVector skat,
boolean jacksAllowed)
JSkatPlayer
public boolean lookIntoSkat(boolean isRamsch)
JSkatPlayer
public final boolean isHumanPlayer()
public final boolean isAIPlayer()
public void showTrick(CardVector trick,
int trickWinner)
JSkatPlayerImpl
showTrick in interface JSkatPlayershowTrick in class JSkatPlayerImpltrick - The CardVector of the current tricktrickWinner - The trick winner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||