rl.prefect.game
Class PrefectGame
java.lang.Object
rl.common.game.Game
rl.prefect.game.PrefectGame
- All Implemented Interfaces:
- GameLogger
public class PrefectGame
- extends Game
| Methods inherited from class rl.common.game.Game |
addListener, addObserver, addPlayer, checkGameReadyToPlay, forcesSelected, gameElementPlacementComplete, getAttacker, getBattleType, getBoard, getCombatUnitsForPlayer, getCurrentPhase, getDescription, getGameElement, getGameLength, getGameSide, getGameSideOne, getGameSideTwo, getLastActivity, getName, getObserverCount, getObserversAllowed, getOpposingSideForPlayer, getPlayer, getPlayerCount, getPlayerForElement, getRaceSelectionAllowed, getSideForPlayer, getThemeName, getTime, getUnallocatedPlayers, getUnitsForPlayer, getWeather, isSideOne, isSideTwo, loadScenario, log, notifyGameDrawn, notifyGameLost, notifyGamePhase, notifyGameWon, phaseCompleted, playerSetupComplete, removeListener, removeObserver, removePlayer, setBoard, setBoard, setGameLogger, setObserversAllowed, setRaceSelectionAllowed, updateActive, victoryConditionsSelected |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrefectGame
public PrefectGame()
hasGameStarted
public boolean hasGameStarted()
- Specified by:
hasGameStarted in class Game
getCurrentTurnNumber
public int getCurrentTurnNumber()
- Specified by:
getCurrentTurnNumber in class Game
getNewGameSide
protected GameSide getNewGameSide(java.lang.String name)
- Specified by:
getNewGameSide in class Game
isValidLocationForElement
public boolean isValidLocationForElement(GameElementIdentifier geID,
Location location)
- Specified by:
isValidLocationForElement in class Game
completeUnitLocationPlacement
protected void completeUnitLocationPlacement(Player p)
- Specified by:
completeUnitLocationPlacement in class Game
startGame
protected void startGame()
- Specified by:
startGame in class Game
placeGameElement
public void placeGameElement(GameElementIdentifier geID,
Location location)
throws java.lang.Exception
- Specified by:
placeGameElement in class Game
- Throws:
java.lang.Exception
unplaceGameElement
public void unplaceGameElement(GameElementIdentifier geID)
throws java.lang.Exception
- Specified by:
unplaceGameElement in class Game
- Throws:
java.lang.Exception
hasLocationForGameElement
protected boolean hasLocationForGameElement(GameElementIdentifier geID)
- Specified by:
hasLocationForGameElement in class Game
getLocationForGameElement
public Location getLocationForGameElement(GameElementIdentifier geID)
- Specified by:
getLocationForGameElement in class Game
resolveGameElementMovementOrders
public void resolveGameElementMovementOrders(MovementOrderSequence mos)
- Specified by:
resolveGameElementMovementOrders in class Game