|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fi.cs.helsinki.ohtur6.logic.GameLogic
Field Summary | |
private int |
numberOfPlayers
Number of the players currently in play |
private int |
round
number of the current round |
Constructor Summary | |
GameLogic()
Default constructor for GameLogic |
Method Summary | |
void |
decreaseRound()
decrease round |
int |
getNumberOfPlayers()
Returns the number of Players in the game |
int |
getRound()
Returns the current round number in the game |
void |
increaseRound()
increase round |
void |
setNumberOfPlayers(int i)
Set playernumber as given value. |
void |
setRound(int i)
Sets game round as given value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int round
private int numberOfPlayers
Constructor Detail |
public GameLogic()
Method Detail |
public int getNumberOfPlayers()
public int getRound()
public void setNumberOfPlayers(int i)
i
- Set current number of players aspublic void setRound(int i)
i
- Set current round aspublic void increaseRound()
public void decreaseRound()
|
(c) ohtuR6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |