|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectgameLogic.Metadata
public class Metadata
This class contains all the metadata concerning the current game session. such as the size of the map, the thinking time for the snakes, the frequency at which snakes grow, the frequency at which fruit spawns and the number of fruits snakes need to eat to win.
Constructor Summary | |
---|---|
Metadata(int boardWidth,
int boardHeight,
int growthFrequency,
int fruitFrequency,
int thinkingTime,
int fruitGoal)
|
Method Summary | |
---|---|
int |
getBoardHeight()
Gets the height of the game board. |
int |
getBoardWidth()
Gets the width of the game board. |
int |
getFruitFrequency()
Gets the number of turns it takes for fruit to spawn. |
int |
getFruitGoal()
Gets the number of total fruit required to win the game. |
int |
getGrowthFrequency()
Gets the number of turns it takes for snakes to grow. |
int |
getMaximumThinkingTime()
Gets the thinking time each snake has each turn, in milliseconds. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Metadata(int boardWidth, int boardHeight, int growthFrequency, int fruitFrequency, int thinkingTime, int fruitGoal)
Method Detail |
---|
public int getBoardWidth()
public int getBoardHeight()
public int getMaximumThinkingTime()
public int getGrowthFrequency()
public int getFruitFrequency()
public int getFruitGoal()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |