|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgame.DiscreteGame
public abstract class DiscreteGame
Represents the necessary time and step functions of a discrete game.
Constructor Summary | |
---|---|
DiscreteGame(int length)
Constructor |
Method Summary | |
---|---|
int |
getCurrentPeriod()
|
int |
getGameLength()
|
abstract void |
run()
Should iterate over each step. |
abstract void |
step()
This method dictates what will happen in one game turn |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiscreteGame(int length)
length
- Method Detail |
---|
public int getCurrentPeriod()
public int getGameLength()
public abstract void run()
public abstract void step()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |