package cellsociety; public class GameOfLife extends AbstractGameModel { protected Color[][] getColors() public void onKeyPress(String key) protected Map getSettings() protected void updateSetting(String key, double value) protected void parseSpecificParameters(Element rootElement) public ArrayList getCellStates() public HashMap getNewData() public GameOfLife(int width, int height) public void update() public void setGrid(String[][] newGrid) public int getGridWidth() public int getGridHeight() } package cellsociety; public class Percolation extends AbstractGameModel { public Percolation(int height, int width) public void update() public CellState[][] getGrid() public ArrayList getCellStates() public HashMap getNewData() public void onKeyPress(String key) protected Map getSettings() protected void updateSetting(String key, double value) protected void parseSpecificParameters(Element rootElement) protected java.awt.Color[][] getColors() public void setGrid(String[][] newGrid) public int getGridWidth() public int getGridHeight() } package cellsociety; public class WaTor extends AbstractGameModel { public WaTor(int width, int height, int fishReproduce, int sharkReproduce, int sharkHealth) public ArrayList getCellStates() public Map getSettings() public void updateSetting(String key, double value) public void update() protected void parseSpecificParameters(Element rootElement) protected java.awt.Color[][] getColors() public void setGrid(String[][] newGrid) public int getGridWidth() public int getGridHeight() public HashMap getNewData() public ComplexEntity(int ttr) protected abstract boolean closerToReproduce(); public Shark() public void decrementLife() public void resetHealth() public int getLife() public boolean closerToReproduce() public Fish() public boolean closerToReproduce() } package cellsociety; public class AntForagingGameModel extends AbstractGameModel { public AntForagingGameModel(int width, int height) public void setGrid(String[][] nextGrid) public ArrayList getCellStates() public HashMap getNewData() protected boolean isNeighbor(int x, int y, int newX, int newY) public void update() public Color[][] getColors() public void onKeyPress(String key) public int getGridWidth() public int getGridHeight() protected Map getSettings() protected void updateSetting(String key, double value) protected void parseSpecificParameters(Element rootElement) } package cellsociety; public abstract class AbstractGameModel extends Neighbors { protected Map stateColors public abstract void update(); // Method to update the game state. protected abstract void setGrid(String[][] grid); public void onKeyPress(String key) public abstract int getGridWidth(); public String getNeighborType() public String getBoundaryType() protected void setRules(Element rootElement) protected Color[][] getColors() public abstract int getGridHeight(); public boolean isPaused() public boolean togglePause() public void setPaused(boolean state) protected void initializeDefaultColors(Map defaultColors) public String getShapeType() protected abstract Map getSettings(); protected abstract void updateSetting(String key, double value); protected abstract void parseSpecificParameters(Element rootElement); public abstract ArrayList getCellStates(); public abstract HashMap getNewData(); public void changeCellState(int posX, int posY, int i) } package cellsociety; public class ForestFire extends AbstractGameModel { public ForestFire(int width, int height, double probCatch, double probPlant) public void setGrid(String[][] newGrid) public int getGridWidth() public int getGridHeight() protected Map getSettings() protected void updateSetting(String key, double value) protected void parseSpecificParameters(Element rootElement) public void update() protected java.awt.Color[][] getColors() public ArrayList getCellStates() public HashMap getNewData() } package cellsociety; public class GameUI { public GameUI(AbstractGameModel gameModel, Stage primaryStage, Runnable onBackToMainMenu) public void showGameSettings() public void handle(long now) // public void handle(long now) public void startGame() public void pauseGame() public void updateGrid() public Scene getScene() } package cellsociety; public class InputHandler { public void setCurrentGameModel(AbstractGameModel gameModel) public void setupInputHandling(Scene scene) } package cellsociety; public class Main extends Application { public static final String DATA_FILE_FOLDER public void start(Stage primaryStage) throws Exception public void showMainMenu() /* public int calculateNumBlocks(File xmlFile) public double getVersion () } package cellsociety; public class Neighbors { protected static ArrayList getNeighborPoints(AbstractGameModel a, Point center) } //package cellsociety; //public class SugarScape extends AbstractGameModel { // public SugarScape(int width, int height, int maxSugar, int vision, int sugarMetabolism) // public void update() // public void setGrid(String[][] newGrid) // public int getGridWidth() // public int getGridHeight() // protected Map getSettings() // protected void updateSetting(String key, double value) // protected void parseSpecificParameters(Element rootElement) // public ArrayList getCellStates() // public HashMap getNewData() // public Agent() } package cellsociety; public class Segregation extends AbstractGameModel { public Segregation(int width, int height, double intolerance) public void setGrid(String[][] newGrid) public int getGridWidth() public int getGridHeight() public Map getSettings() public void updateSetting(String key, double value) public void update() public void onKeyPress(String key) protected void parseSpecificParameters(Element rootElement) public ArrayList getCellStates() public HashMap getNewData() protected java.awt.Color[][] getColors() } package cellsociety; public class GraphData { public GraphData(AbstractGameModel a) public void updateData(AbstractGameModel a) public HashMap> getData() } package cellsociety; public class GameModelLoader { public AbstractGameModel loadFromXml(String xmlFilePath) throws Exception protected void initializeFromXmlElement(AbstractGameModel gameModel, Element rootElement) protected void defaultInitializeFromXmlElement(AbstractGameModel gameModel, Element rootElement) } package cellsociety; public class FallingSands extends AbstractGameModel { public ParticleType getNext() public FallingSands(int width, int height) public void setGrid(String[][] newGrid) public int getGridWidth() public int getGridHeight() protected Map getSettings() protected void updateSetting(String key, double value) protected void parseSpecificParameters(Element rootElement) public void changeCellState(int x, int y, int clickCount) public void placeSand(int x, int y) public void placeWater(int x, int y) public void placeMetal(int x, int y) public void handleGridClick(int x, int y, ParticleType type) public void update() protected Color[][] getColors() public ArrayList getCellStates() public HashMap getNewData() }