67 virtual float EnergyLevel();
68 virtual void EnergyLevel(
float fltVal);
69 virtual void AddEnergy(
float fltVal);
71 virtual float ConsumptionRate();
72 virtual void ConsumptionRate(
float fltVal);
74 virtual float BaseConsumptionRate();
75 virtual void BaseConsumptionRate(
float fltVal);
77 virtual float MaxEnergyLevel();
78 virtual void MaxEnergyLevel(
float fltVal);
80 virtual bool KillOrganism();
81 virtual void KillOrganism(
bool bVal);
86 virtual void CreateParts();
89 virtual void AddExternalNodeInput(
int iTargetDataType,
float fltInput);
90 virtual float *GetDataPointer(
const std::string &strDataType);
91 virtual bool SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError =
true);
92 virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
93 virtual void StepSimulation();
94 virtual void ResetSimulation();
95 virtual void Load(CStdXml &oXml);
float m_fltMaxEnergyLevel
float m_fltEnergyLevel
The current energy level.
float m_fltBaseConsumptionRate
The base consumption rate. This is the standard, constant rate of consumption.
Root namespace for the base simulation library for AnimatLab.
float m_fltConsumptionForStep
The consumption for the current simulation step. This is the consumption rate times the time step siz...
The Stomach object is responsible for holding food energy.
bool m_bKillOrganism
If this is true then if the energy level reaches zero then the organism is killed.
float m_fltConsumptionRate
The current consumption rate. This is calculated by adding m_fltAdapterConsumptionRate and m_fltBaseC...
bool m_bKilled
Set to true if the organism is killed.
virtual bool HasStaticJoint()
Query if this object has a static joint.
float m_fltAdapterConsumptionRate
float m_fltReportAlive
Used to report in GetDataPointer if the organism was killed.
float m_fltInitEnergyLevel
The starting energy level.
The base class for all of the basic rigid body type of objects.