fi.cs.helsinki.ohtur6.logic
Class GameLogic

java.lang.Object
  |
  +--fi.cs.helsinki.ohtur6.logic.GameLogic
Direct Known Subclasses:
SimpleLogic

public class GameLogic
extends java.lang.Object

Author:
OhtuR6 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

round

private int round
number of the current round


numberOfPlayers

private int numberOfPlayers
Number of the players currently in play

Constructor Detail

GameLogic

public GameLogic()
Default constructor for GameLogic

Method Detail

getNumberOfPlayers

public int getNumberOfPlayers()
Returns the number of Players in the game

Returns:
number of the players in the game (int)

getRound

public int getRound()
Returns the current round number in the game

Returns:
current round number (int)

setNumberOfPlayers

public void setNumberOfPlayers(int i)
Set playernumber as given value.

Parameters:
i - Set current number of players as

setRound

public void setRound(int i)
Sets game round as given value

Parameters:
i - Set current round as

increaseRound

public void increaseRound()
increase round


decreaseRound

public void decreaseRound()
decrease round


(c) ohtuR6