/** * _update pac man. * * @param move the move */ private void _updatePacMan(MOVE move) { pacman.lastMoveMade = _correctPacManDir(move); pacman.currentNodeIndex = pacman.lastMoveMade == MOVE.NEUTRAL ? pacman.currentNodeIndex : laberintoActua.graph[pacman.currentNodeIndex].neighbourhood.get(pacman.lastMoveMade); }
/** _level reset. */ private void _levelReset() { fastamasComerMultiplicador = 1; _initGhosts(); pacman.currentNodeIndex = laberintoActua.initialPacManNodeIndex; pacman.lastMoveMade = MOVE.LEFT; }