![]() |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
#include <Osmia.h>
Public Member Functions | |
OsmiaForageMask () | |
Public Attributes | |
int | m_mask [20][8][2] |
Holds 20 distances and 8 directions with offsets to x,y. More... | |
int | m_step |
int | m_step2 |
OsmiaForageMask::OsmiaForageMask | ( | ) |
This is a simple distance mask which can be used to search outwards in even steps of cfg_OsmiaForageMaskStep It represents 8 directions in 20 even steps of 1/19 the max homing distance. When used it will add another 1/19 to a randsom search start point from the next location. It is really a data class, and everything is publically accessible.
References cfg_OsmiaForageMaskStepSZ, cfg_OsmiaForageSteps, m_mask, m_step, m_step2, and CfgInt::value().
int OsmiaForageMask::m_mask[20][8][2] |
Holds 20 distances and 8 directions with offsets to x,y.
This is a way to speed up searches from a centre point. The predefined mask can be iterated through without having to calculate offsets. It could also be modified to alter distances between locations if needed by altering the step size.
Referenced by OsmiaForageMask().
int OsmiaForageMask::m_step |
Referenced by OsmiaForageMask().
int OsmiaForageMask::m_step2 |
Referenced by OsmiaForageMask().