|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjagafa.stats.CardTool
public final class CardTool
CardTool contains some helper Methods to deal with cards and CardLists
| Constructor Summary | |
|---|---|
CardTool()
|
|
| Method Summary | |
|---|---|
static CardList |
getAllOfColor(CardList cards,
int color)
Get all Cards in the CardList with the color given |
static CardList |
getValidCards(Hand hand,
Board board,
RuleSet rules)
Get all Valid Cards out of the Hand for the board with the Ruleset specified |
static boolean |
isBock(int nth,
Card c,
CardList gone,
RuleSet rules)
Check wether the card is a Bock of level n or not |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CardTool()
| Method Detail |
|---|
public static CardList getAllOfColor(CardList cards,
int color)
cards - The source CardsListcolor - The relevant color
public static boolean isBock(int nth,
Card c,
CardList gone,
RuleSet rules)
nth - The level of the Bockc - The card to checkgone - A CardList of all cards gone in the game
public static CardList getValidCards(Hand hand,
Board board,
RuleSet rules)
hand - The relevant handboard - The relevant boardrules - The RuleSet to apply
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||