148149150151152153154155156
Location pos; do { pos = solutionPath.remove(0); MazeCell cell = maze.getCell(pos); cell.clearPath(); } while ( pos != lastState.getPosition()); } }
452453454455456457458459460461462
if (entity instanceof RPEntity) { final RPEntity rpentity = (RPEntity) entity; rpentity.stop(); rpentity.stopAttack(); rpentity.clearPath(); } Sheep sheep = null; Pet pet = null;
483484485486487488489490491492493
} pet = player.getPet(); if (pet != null) { pet.clearPath(); pet.stop(); player.removePet(pet); } }
474475476477478479480481482483484
* Remove and remember dependents */ sheep = player.getSheep(); if (sheep != null) { sheep.clearPath(); sheep.stop(); player.removeSheep(sheep); }