public ActionResult PetView() { if (TamaUser.GetTama().GetFood() <= 0 || (TamaUser.GetTama().GetRest() <= 0) || (TamaUser.GetTama().GetAttention() <= 0)) { return(View("dead")); } else { return(View("pet", TamaUser.GetTama())); } }
public ActionResult PassTama() { TamaUser.GetTama().PassTime(); return(RedirectToAction("PetView")); }
public ActionResult AttTama() { TamaUser.GetTama().GiveAttention(); return(RedirectToAction("PetView")); }
public ActionResult SleepTama() { TamaUser.GetTama().GiveRest(); return(RedirectToAction("PetView")); }
public ActionResult FeedTama() { TamaUser.GetTama().GiveFood(); return(RedirectToAction("PetView")); }