}//end of callstatealsoold public void CheckHunger() { if (PetCurrentFood > 0) { //instead of checking if PetHunger > 0 //it doesn't have to go down to zero //that would take too long if (PetHunger > PetAppetiteUpFrame) { if (PetEating) { //do nada } else { State = new Eating(this); PetEating = true; } } else //wait to eat { EndEat(); //petEating = false; //State = new Neutral(this); } } else // there is no more food to eat { petEating = false; State = new Neutral(this); } }//end CheckHunger
}//end CheckLoneliness public void EndHug() { PetHugging = false; State = new Neutral(this); }
}//end CheckTiredness public void EndPlay() { PetPlaying = false; State = new Neutral(this); }
}//end CheckTiredness public void EndSleep() { petSleeping = false; State = new Neutral(this); }
}//end CheckThirst public void EndDrink() { petDrinking = false; State = new Neutral(this); }
}//end CheckHunger public void EndEat() { petEating = false; State = new Neutral(this); }