// the craft is replaced to his entry point in the cheese public void kill() { --lives; pos.x = cuttingEdge.getFirst().x; pos.y = cuttingEdge.getFirst().y; previousPos = pos; clearCuttingEdge(); }
public final void clearCuttingEdge() { cuttingEdge = new PointList(false); cuttingEdge.addVertexToEnd(getPosition()); }
public void deleteRedundantCuttingEdgePoints() { cuttingEdge.deleteRedundantPoints(); }
public boolean isOnCuttingEdge(Point p) { return cuttingEdge.isOnBorder(p); }
public void addCuttingEdgePoint() { cuttingEdge.addVertexToEnd(getPosition()); deleteRedundantCuttingEdgePoints(); }