Package game
Class TrickImpl
java.lang.Object
game.TrickImpl
- All Implemented Interfaces:
Trick
-
Constructor Details
-
TrickImpl
-
-
Method Details
-
addCard
Description copied from interface:Trick
add a card played by a player -
getCall
-
setCall
-
getCards
-
getCardsAndUsers
- Specified by:
getCardsAndUsers
in interfaceTrick
- Returns:
- the cards and the users in the trick
-
getNumberOfPlayers
public int getNumberOfPlayers() -
getTrump
-
isCompleted
@BsonIgnore public boolean isCompleted()Description copied from interface:Trick
check if the trick is completed- Specified by:
isCompleted
in interfaceTrick
- Returns:
- true if all the players have played their card
-
toString
-