double getMaxDamageAtRange(InfantryFireControl fireControl, Entity shooter, MovePath movePath, int range, boolean useExtremeRange, boolean useLOSRange) { return fireControl.getMaxDamageAtRange(shooter, movePath, range, useExtremeRange, useLOSRange); } }
/** * Initialize the fire controls. */ public void initializeFireControls() { fireControls = new HashMap<>(); FireControl fireControl = new FireControl(this); fireControls.put(FireControlType.Basic, fireControl); InfantryFireControl infantryFireControl = new InfantryFireControl(this); fireControls.put(FireControlType.Infantry, infantryFireControl); }
public InfantryPathRanker(Princess princess) { super(princess); setFireControl(new InfantryFireControl(princess)); setPathEnumerator(princess.getPrecognition().getPathEnumerator()); }