45 virtual void SetStomachPointer(std::string strID);
53 virtual float EatingRate();
63 virtual float MinFoodRadius();
74 virtual void MinFoodRadius(
float fltVal,
bool bUseScaling =
true);
76 virtual void StomachID(std::string strID);
77 virtual std::string StomachID();
80 virtual void Initialize();
81 virtual void AddExternalNodeInput(
int iTargetDataType,
float fltInput);
82 virtual bool SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError =
true);
83 virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
84 virtual float *GetDataPointer(
const std::string &strDataType);
85 virtual void StepSimulation();
86 virtual void ResetSimulation();
87 virtual void Load(CStdXml &oXml);
Root namespace for the base simulation library for AnimatLab.
The Stomach object is responsible for holding food energy.
Stomach * m_lpStomach
The pointer to stomach for this organism.
float m_fltMinFoodRadius
Any food source that is further away than this minimum radius will not be available for eating...
float m_fltFoodDistance
The current distance between the food and the mouth.
std::string m_strStomachID
Identifier for the stomach.