nutritionalprofile.c 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. class NutritionalProfile
  2. {
  3. float m_Energy;
  4. float m_WaterContent;
  5. float m_NutritionalIndex;
  6. float m_FullnessIndex;
  7. float m_Toxicity;
  8. int m_LiquidType;
  9. int m_Agents;
  10. string m_LiquidClassname;
  11. float m_Digestibility;
  12. void NutritionalProfile(float energy, float water_content, float nutritional_index, float fullness_index, float toxicity, int agents, float digestibility)
  13. {
  14. m_Energy = energy;
  15. m_WaterContent = water_content;
  16. m_NutritionalIndex = nutritional_index;
  17. m_FullnessIndex = fullness_index;
  18. m_Toxicity = toxicity;
  19. m_Agents = agents;
  20. m_Digestibility = digestibility;
  21. }
  22. void MarkAsLiquid(int liquid_type, string classname)
  23. {
  24. m_LiquidType = liquid_type;
  25. m_LiquidClassname = classname;
  26. }
  27. int GetAgents()
  28. {
  29. return m_Agents;
  30. }
  31. int GetLiquidType()
  32. {
  33. return m_LiquidType;
  34. }
  35. string GetLiquidClassname()
  36. {
  37. return m_LiquidClassname;
  38. }
  39. bool IsLiquid()
  40. {
  41. return (m_LiquidType > 0);
  42. }
  43. float GetEnergy()
  44. {
  45. return m_Energy;
  46. }
  47. float GetWaterContent()
  48. {
  49. return m_WaterContent;
  50. }
  51. float GetNutritionalIndex()
  52. {
  53. return m_NutritionalIndex;
  54. }
  55. float GetFullnessIndex()
  56. {
  57. return m_FullnessIndex;
  58. }
  59. float GetToxicity()
  60. {
  61. return m_Toxicity;
  62. }
  63. float GetDigestibility()
  64. {
  65. return m_Digestibility;
  66. }
  67. }