Package game.core
Class _G_
java.lang.Object
game.core.G
game.core._G_
- All Implemented Interfaces:
Game
- Direct Known Subclasses:
_RG_
public class _G_ extends G
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static int
EDIBLE_ALERT
Fields inherited from class game.core.G
config, curGhostLocs, curMaze, curPacManLoc, edibleTimes, extraLife, gameOver, ghostEatMultiplier, lairTimes, lastGhostDirs, lastPacManDir, levelTime, livesRemaining, mazes, pills, powerPills, remainingLevels, rnd, score, totalTime, totLevel
Fields inherited from interface game.core.Game
COMMON_LAIR_TIME, DOWN, EAT_DISTANCE, EDIBLE_TIME, EDIBLE_TIME_REDUCTION, EMPTY, EXTRA_LIFE_SCORE, GHOST_EAT_SCORE, GHOST_REVERSAL, GHOST_SPEED_REDUCTION, INITIAL_GHOST_DIRS, INITIAL_PAC_DIR, LAIR_REDUCTION, LAIR_TIMES, LEFT, LEVEL_LIMIT, MAX_LEVELS, NUM_GHOSTS, NUM_LIVES, NUM_MAZES, PILL, POWER_PILL, RIGHT, UP
-
Constructor Summary
Constructors Constructor Description _G_()
-
Method Summary
Modifier and Type Method Description int
getHeight()
java.lang.StringBuilder
getRecordedMatch()
int
getWidth()
void
monitorGame()
void
newGame(PacManSimulator.GameConfig config)
Methods inherited from class game.core.G
advanceGame, advanceGameReplay, checkGhostDir, checkLevelState, checkPacManDir, checkPill, checkPowerPill, copy, decimatePills, eatPill, eatPowerPill, feast, gameOver, getCurGhostDir, getCurGhostLoc, getCurLevel, getCurMaze, getCurPacManDir, getCurPacManLoc, getEdibleTime, getEuclideanDistance, getGhostNeighbours, getGhostPath, getGhostPathDistance, getGhostTarget, getInitialGhostsPosition, getInitialPacPosition, getJunctionIndices, getLairTime, getLevelTime, getLivesRemaining, getManhattanDistance, getName, getNeighbour, getNextEdibleGhostScore, getNextGhostDir, getNextPacManDir, getNumActivePills, getNumActivePowerPills, getNumberOfNodes, getNumberPills, getNumberPowerPills, getNumNeighbours, getPacManNeighbours, getPath, getPathDistance, getPillIndex, getPillIndices, getPillIndicesActive, getPossibleDirs, getPossibleGhostDirs, getPossiblePacManDirs, getPowerPillIndex, getPowerPillIndices, getPowerPillIndicesActive, getReverse, getScore, getTarget, getTotalTime, getX, getY, ghostRequiresAction, init, isEdible, isJunction, reset, updateGhosts, updatePacMan
-
Field Details
-
EDIBLE_ALERT
public static final int EDIBLE_ALERT- See Also:
- Constant Field Values
-
-
Constructor Details
-
_G_
public _G_()
-
-
Method Details
-
newGame
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
monitorGame
public void monitorGame() -
getRecordedMatch
public java.lang.StringBuilder getRecordedMatch()
-