Example #1
0
        public string time; // food time

        public Animals(AnimalType type, PowerSupplyType food_type, string name, int age, bool hungryState, string time)

        {
            this.type        = type;
            this.food_type   = food_type;
            this.name        = name;
            this.age         = age;
            this.hungryState = hungryState;
            this.time        = time;
        }
Example #2
0
 public bool CheckPowerSupplyСompatibility(PowerSupplyType type)
 {
     return(PowerSupplyTypeCompatybility == type);
 }