/** * How quickly will I try to escape once damaged? * * @param index The index of the Bravery modifier to be used. */ public void setBraveryIndex(final int index) { braveryIndex = validateIndex(index); }
/** * How quickly will I try to escape once damaged? * * @param index The index of the Bravery modifier to retrieve. * @return Bravery modifier value at given index. */ protected double getBraveryValue(final int index) { return BRAVERY[validateIndex(index)]; }
/** * How worried about enemy damage am I? * * @param selfPreservationIndex The index [0-10] of the self preservation value to be used. */ public void setSelfPreservationIndex(final int selfPreservationIndex) { this.selfPreservationIndex = validateIndex(selfPreservationIndex); }
/** * @param index The index of my current {@link #FALL_SHAME_VALUES}. */ public void setFallShameIndex(final int index) { this.fallShameIndex = validateIndex(index); }
/** * How close do I want to stick to my teammates? * * @param index The index [0-10] of the herd mentality value that should be used. * @return The herd mentality value at the specified index. */ protected double getHerdMentalityValue(final int index) { return HERD_MENTALITY_VALUES[validateIndex(index)]; }
/** * @param index The index of the {@link #FALL_SHAME_VALUES} sought. * @return The value at the given index. Indexes less than 0 are treated as 0 and indexes greater than 10 are * treated as 10. */ protected int getFallShameValue(final int index) { return FALL_SHAME_VALUES[validateIndex(index)]; }
/** * How close do I want to stick to my teammates? * * @param herdMentalityIndex The index [0-10] of the herd mentality that should be used. */ public void setHerdMentalityIndex(final int herdMentalityIndex) { this.herdMentalityIndex = validateIndex(herdMentalityIndex); }
/** * How close to I want to get to my enemies? * * @param index The index[0-10] of the hyper aggression value desired. * @return The hyper aggression value at the given index. */ protected double getHyperAggressionValue(final int index) { return HYPER_AGGRESSION_VALUES[validateIndex(index)]; }
/** * How close to I want to get to my enemies? * * @param hyperAggressionIndex The index [0-10] of the hyper aggression value to be used. */ public void setHyperAggressionIndex(final int hyperAggressionIndex) { this.hyperAggressionIndex = validateIndex(hyperAggressionIndex); }