|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JSkatPlayer
The JSkat Player Interface
| 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 |
void |
cardPlayed(Card card)
Informs the player about a card that was played |
int |
getPlayerID()
Returns the ID of the SkatPlayer |
java.lang.String |
getPlayerName()
Returns the name of the SkatPlayer |
boolean |
isAIPlayer()
|
boolean |
isHumanPlayer()
|
boolean |
lookIntoSkat(boolean isRamsch)
Check if you want to look in the skat |
void |
newGame()
Informs the player about the start of a new game |
Card |
playCard(CardVector trick)
Get next Card to play |
int |
playNextCard(CardVector trick)
Deprecated. |
Card |
removeCard(Card card)
Deprecated. |
Card |
removeCard(int index)
Deprecated. |
Card |
removeCard(int suit,
int value)
Get the selected card from the player's hand |
void |
setPlayerID(int newPlayerID)
Returns the ID of the SkatPlayer |
void |
setPlayerName(java.lang.String newPlayerName)
Sets the name of the SkatPlayer |
void |
setUpBidding(int initialForehandPlayer)
Notifies the player of the start of bidding for a new game |
void |
showTrick(CardVector trick,
int trickWinner)
Makes the current trick known to the players when it is complete |
void |
startGame(int singlePlayer,
int forehandPlayer,
int gameType,
int trump,
boolean handGame,
boolean ouvertGame)
Start the game: inform player of game type, trumpf and special options |
void |
takeCard(Card newCard)
Take a card from someone |
void |
takeRamschSkat(CardVector skat,
boolean jacksAllowed)
Take the skat in a ramsch round |
void |
takeSkat(CardVector skat)
Take the skat as a single player. |
| Method Detail |
|---|
void newGame()
void setUpBidding(int initialForehandPlayer)
boolean bidMore(int currBidValue)
void takeCard(Card newCard)
boolean lookIntoSkat(boolean isRamsch)
void takeSkat(CardVector skat)
void takeRamschSkat(CardVector skat,
boolean jacksAllowed)
GameAnnouncement announceGame()
void startGame(int singlePlayer,
int forehandPlayer,
int gameType,
int trump,
boolean handGame,
boolean ouvertGame)
int playNextCard(CardVector trick)
Card playCard(CardVector trick)
void cardPlayed(Card card)
card - The Card the was played
void showTrick(CardVector trick,
int trickWinner)
Card removeCard(int suit,
int value)
Card removeCard(Card card)
Card removeCard(int index)
java.lang.String getPlayerName()
void setPlayerName(java.lang.String newPlayerName)
int getPlayerID()
void setPlayerID(int newPlayerID)
boolean isHumanPlayer()
boolean isAIPlayer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||