Esempio n. 1
0
 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()));
     }
 }
Esempio n. 2
0
 public ActionResult PassTama()
 {
     TamaUser.GetTama().PassTime();
     return(RedirectToAction("PetView"));
 }
Esempio n. 3
0
 public ActionResult AttTama()
 {
     TamaUser.GetTama().GiveAttention();
     return(RedirectToAction("PetView"));
 }
Esempio n. 4
0
 public ActionResult SleepTama()
 {
     TamaUser.GetTama().GiveRest();
     return(RedirectToAction("PetView"));
 }
Esempio n. 5
0
 public ActionResult FeedTama()
 {
     TamaUser.GetTama().GiveFood();
     return(RedirectToAction("PetView"));
 }