Skip to content

Funciones incorporadas como enumerados

hecoding edited this page Mar 8, 2017 · 4 revisions

###MOVE

moveUp
moveDown
moveLeft
moveRight
moveNeutral
getDirectionTowardsClosestPill
getDirectionTowardsClosestPowerPill
getDirectionAwayFromClosestNonEdibleGhost
getDirectionTowardsClosestEdibleGhost

int

getDistanceToClosestNonEdibleGhost
getDistanceToClosestNonEdibleGhost con 4 direcciones
getDistanceToClosestEdibleGhost con 4 direcciones
getNumberOfActivePowerPills
getDistToClosestPill
getDistToClosestPill con 4 direcciones
getDistToClosestPowerPill
getDistToClosestPowerPill con 4 direcciones
getClosestJunctionExitsNumber con 4 direcciones
getDistanceToClosestJunction con 4 direcciones
getClosestNonEdibleGhostDistanceToClosestJunction con 4 direcciones
getClosestEdibleGhostDistanceToClosestJunction con 4 direcciones
getGeometricMeanDistanceToNonEdibleGhosts
getGeometricMeanDistanceToEdibleGhosts

###boolean

isJunction

Pendientes de discusión

isDirectionTakeable

##Listado completo de funciones de Game, usadas o no

###MOVE

getPacmanLastMoveMade()
getGhostLastMoveMade(GHOST)
getMoveToMakeToReachDirectNeighbour(int, int)
getNextMoveTowardsTarget(int, int, DM)
getNextMoveAwayFromTarget(int, int, DM)
getNextMoveAwayFromTargetUpgraded(int, int, DM)
getApproximateNextMoveTowardsTarget(int, int, MOVE, DM)
getApproximateNextMoveAwayFromTarget(int, int, MOVE, DM)
getNextMoveTowardsTarget(int, int, MOVE, DM)
getNextMoveAwayFromTarget(int, int, MOVE, DM)

###boolean

wasPacManEaten()
wasGhostEaten(GHOST)
wasPillEaten()
wasPowerPillEaten()
gameOver()
isPillStillAvailable(int)
isPowerPillStillAvailable(int)
closerThan(int, int, int)
isGhostEdible(GHOST)
doesGhostRequireAction(GHOST)
isJunction(int)

int

getNumGhostsEaten()
getTimeOfLastGlobalReversal()
getNodeXCood(int)
getNodeYCood(int)
getMazeIndex()
getCurrentLevel()
getNumberOfNodes()
getGhostCurrentEdibleScore()
getGhostInitialNodeIndex()
getPillIndex(int)
getPowerPillIndex(int)
getPacmanCurrentNodeIndex()
getPacmanNumberOfLivesRemaining()
getGhostCurrentNodeIndex(GHOST)
getGhostEdibleTime(GHOST)
getDistanceToClosestNonEdibleGhost(int)
getDistanceToClosestNonEdibleGhost(int, MOVE)
getScore()
getCurrentLevelTime()
getTotalTime()
getNumberOfPills()
getNumberOfPowerPills()
getNumberOfActivePills()
getNumberOfActivePowerPills()
getClosestPill(int)
getClosestPowerPill(int)
getClosestPillOrPowerPill(int)
getGhostLairTime(GHOST)
getNeighbour(int, MOVE)
getShortestPathDistance(int, int)
getManhattanDistance(int, int)
getClosestNodeIndexFromNodeIndex(int, int[], DM)
getFarthestNodeIndexFromNodeIndex(int, int[], DM)
getShortestPathDistance(int, int, MOVE)

###double

getEuclideanDistance(int, int)
getDistance(int, int, DM)
getDistance(int, int, MOVE, DM)