#ifndef drink_h #define drink_h #include "Arduino.h" class drink { private: String drinkName; //sum of all ingredients needs to be exactly 1 in total, or the code won't accept the recipe(will be set to 0 in that case)! float concOfIng1=0;//in percent (exp.: 0.5) float concOfIng2=0;//in percent (exp.: 0.5) float concOfIng3=0;//in percent (exp.: 0.5) float concOfIng4=0;//in percent (exp.: 0.5) float concOfIng5=0;//in percent (exp.: 0.5) float amount=0.0;//in ml int drinkNumber=0; public: void setName(String newName); void setDrinkNumber(int newNumber); void setAmount(float newAmount); void setConcentrationOfIngredients(float new1, float new2, float new3, float new4, float new5); String getName();//returns the name int getDrinkNumber();//returns the number of the dirnk float getAmount();//returns the amount float getConcentrationOfIngredient(int number);//returns the concentration of the ingredient specified by number drink(int newNumber, String newName, float newAmount, float new1, float new2, float new3, float new4, float new5);//constructor drink();//standard constructor ~drink();//destructor }; #endif