|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScoreTable
| Method Summary | |
|---|---|
void |
activateRule(RuleSet rule)
Activate a RuleSet. |
void |
addScores(int[] scores,
RuleSet rules)
Add scores achieved with a specific RuleSet to the table. |
boolean |
canChangeChoosingPlayer()
|
boolean |
changeChoosingPlayer()
Change internally the player which can choose the RuleSet. |
void |
deactivateRule(RuleSet rule)
Deactivate a RuleSet. |
int |
getChoosingPlayer()
Get the player which can choose the ruleSet for the next round |
int |
getMultiplier(RuleSet rule)
Returns the multiplier of an activated RuleSet. |
java.util.List<RuleSet> |
getRules()
Get a list of all activated RuleSets |
int[] |
getScores()
Get all the players scores from all the rounds played |
int |
getStartPlayer()
Get the player which can start the next round |
int |
getWinningScore()
|
boolean |
isGameOver()
Check wether the Game is over or not |
boolean |
isRuleAvailable(RuleSet rule)
|
void |
resetScores()
Reset all scores to 0 |
int |
roundsPlayed()
|
void |
setStartPlayer(int pindex)
Set the player which can start the next round |
| Method Detail |
|---|
boolean isRuleAvailable(RuleSet rule)
void activateRule(RuleSet rule)
rule - void deactivateRule(RuleSet rule)
rule - java.util.List<RuleSet> getRules()
void addScores(int[] scores,
RuleSet rules)
scores - rules - int[] getScores()
void resetScores()
boolean isGameOver()
void setStartPlayer(int pindex)
p - int getStartPlayer()
boolean changeChoosingPlayer()
boolean canChangeChoosingPlayer()
int getChoosingPlayer()
int getMultiplier(RuleSet rule)
rule - The RuleSet of which the scores will be multiplied
int roundsPlayed()
int getWinningScore()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||