Coords getLastKnownCoords(Integer entityId) { final String METHOD_NAME = "getLastKnownCoords(Integer)"; getOwner().methodBegin(getClass(), METHOD_NAME); try { CoordFacingCombo ccr = getLastKnownLocations().get(entityId); if (ccr == null) { return null; } return ccr.getCoords(); } finally { getOwner().methodEnd(getClass(), METHOD_NAME); } }
private void LogAeroMoveLegalityEvaluation(String whyNot, MovePath path) { this.getOwner().log(this.getClass(), "isLegalAeroMove", LogLevel.DEBUG, path.length() + ":" + path.toString() + ":" + whyNot); }
/** * From a list of potential moves, make a potential ending location chart */ void updateUnitLocations(Entity entity, List<MovePath> paths) { final String METHOD_NAME = "updateUnitLocations(Entity, ArrayList<MovePath>)"; getOwner().methodBegin(getClass(), METHOD_NAME); try { // clear previous locations for this entity getUnitPotentialLocations().remove(entity.getId()); // Set<CoordFacingCombo> toAdd = new HashSet<>(); for (MovePath path : paths) { toAdd.add(CoordFacingCombo.createCoordFacingCombo(path)); } getUnitPotentialLocations().put(entity.getId(), toAdd); } finally { getOwner().methodEnd(getClass(), METHOD_NAME); } }