public int ifSightHit(Organism target, int index) { double cost = 0.25 * energyMod; target.drainEnergy(cost); if(target.getSight().canSee()) { return index + 1; } else { return index + 2; } }
public int ifSightHit(Organism target, int index) { double cost = 0.25 * energyMod; target.drainEnergy(cost); if(target.getSight().canSee()) { return index + 1; } else { return index + 2; } }