A class in Root.Township, Alta.Intelligence.
A pooled array of 32 sense intensities used by AI targets. Get one with Get and give it back with Release.
Constructors
1 private and internal constructor
| Member | What it is |
|---|
private BasicSenseSet() | Creates a BasicSenseSet with default values. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private float[] intensities | Backing field for Intensities. |
private static Stack<BasicSenseSet> pool | Private: shared stack of released sets. |
Properties
| Member | What it is |
|---|
float[] Intensities { get; } | The 32 intensity values, indexed by sense. |
Methods
| Member | What it is |
|---|
void Apply(SenseSetup[] setup, string errorName) | Copies intensities in, either from a list of SenseSetup entries (by sense index) or from a full 32 value array. |
void Apply(float[] intensities) | Copies intensities in, either from a list of SenseSetup entries (by sense index) or from a full 32 value array. |
static BasicSenseSet Get() | Takes a cleared set from the pool, or makes a new one. |
void Modify(SenseOld sense, float value) | Sets one intensity, indexed by the old SenseOld enum. |
void Release() | Clears the set and returns it to the pool (kept to 100 sets). |
void ZeroAll() | Sets every intensity to zero. |
1 private and internal method
| Member | What it is |
|---|
private void Clear() | Private: zeroes every intensity. |
Used in
Members of other types that take, return or hold a BasicSenseSet: