123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- class NutritionalProfile
- {
- float m_Energy;
- float m_WaterContent;
- float m_NutritionalIndex;
- float m_FullnessIndex;
- float m_Toxicity;
- int m_LiquidType;
- int m_Agents;
- string m_LiquidClassname;
- float m_Digestibility;
- float m_AgentsPerDigest;
-
- //! DEPRECATED - used as the structure with direct access
- void NutritionalProfile(float energy = 0.0, float water_content = 0.0, float nutritional_index = 0.0, float fullness_index = 0.0, float toxicity = 0.0, int agents = 0.0, float digestibility = 0.0)
- {
- m_Energy = energy;
- m_WaterContent = water_content;
- m_NutritionalIndex = nutritional_index;
- m_FullnessIndex = fullness_index;
- m_Toxicity = toxicity;
- m_Agents = agents;
- m_Digestibility = digestibility;
- }
-
- void MarkAsLiquid(int liquid_type, string classname)
- {
- m_LiquidType = liquid_type;
- m_LiquidClassname = classname;
- }
-
- int GetAgents()
- {
- return m_Agents;
- }
-
- int GetLiquidType()
- {
- return m_LiquidType;
- }
-
- string GetLiquidClassname()
- {
- return m_LiquidClassname;
- }
-
- bool IsLiquid()
- {
- return (m_LiquidType > 0);
- }
-
- float GetEnergy()
- {
- return m_Energy;
- }
-
- float GetWaterContent()
- {
- return m_WaterContent;
- }
-
- float GetNutritionalIndex()
- {
- return m_NutritionalIndex;
- }
-
- float GetFullnessIndex()
- {
- return m_FullnessIndex;
- }
-
- float GetToxicity()
- {
- return m_Toxicity;
- }
-
- float GetDigestibility()
- {
- return m_Digestibility;
- }
- }
|