net.sourceforge.cilib.games.game
Class GridGame

java.lang.Object
  extended by net.sourceforge.cilib.games.game.Game<GridGameState>
      extended by net.sourceforge.cilib.games.game.GridGame
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
TicTacToe

public abstract class GridGame
extends Game<GridGameState>

Author:
leo This class represents any game that takes place in a grid. It will use the concrete GridGameState object
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.games.game.Game
agentMeasurement, currentPlayer, players
 
Constructor Summary
GridGame()
           
GridGame(GridGame other)
           
GridGame(GridGame other, GridGameState newState)
           
 
Method Summary
 int getHeight()
           
 int getWidth()
           
 void setHeight(int height)
           
 void setWidth(int width)
           
 
Methods inherited from class net.sourceforge.cilib.games.game.Game
addMeasurement, assignPlayerScore, clearMeasurementData, clearMeasurements, display, gameOver, getAgentMeasurements, getClone, getClone, getCurrentIteration, getCurrentPlayer, getCurrentState, getDecisionState, getDomainForPlayer, getGameResult, getNextPlayerID, getPlayer, getPlayerCount, getPlayerIDList, getPlayerScore, getScoringStrategy, initializeAgent, initializeGame, playGame, playGame, setAgent, setAgent, setCurrentGameState, setCurrentPlayer, setEntityScore, setScoringStrategy, setSeedingStrategy, setStartPlayer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridGame

public GridGame()

GridGame

public GridGame(GridGame other)
Parameters:
other -

GridGame

public GridGame(GridGame other,
                GridGameState newState)
Parameters:
other -
Method Detail

getWidth

public int getWidth()

getHeight

public int getHeight()

setWidth

public void setWidth(int width)

setHeight

public void setHeight(int height)


Copyright © 2009 CIRG. All Rights Reserved.