|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjagafa.object.CardList
jagafa.object.Board
public class Board
The Board object holds alls the cards played including the information which Player played which Card (Is also a CardList)
| Constructor Summary | |
|---|---|
Board()
Constructor: Init the board and init playerList |
|
Board(Board b)
Copy Constructor: Init the board and init playerList |
|
| Method Summary | |
|---|---|
void |
addCard(Card c,
Player p)
Adds a Card to the Board |
int |
cardsPlayed()
Get the number of cards on the board |
void |
clearBoard()
Clear the Board |
Card |
getFirstCard()
Get the first card played |
int |
getFirstColor()
Get the color of the first card played |
Player |
getPlayerOfPos(int pos)
Get the Player who played the n-th card |
| Methods inherited from class jagafa.object.CardList |
|---|
add, addAll, clear, contains, get, getGoneOfColor, isEmpty, iterator, list, remove, remove, size, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Board()
public Board(Board b)
b - The board to copy| Method Detail |
|---|
public void addCard(Card c,
Player p)
c - The card to addp - The player which played the cardpublic void clearBoard()
public int cardsPlayed()
public Player getPlayerOfPos(int pos)
pos - The position of the card
public int getFirstColor()
public Card getFirstCard()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||