Beispiel #1
0
 public static void FeedPet(Pet pet)
 {
     int food = pet.GetFood();
       pet.SetFood(food + 10);
 }
Beispiel #2
0
 public static void RestPet(Pet pet)
 {
     int rest = pet.GetRest();
       pet.SetRest(rest + 10);
 }
Beispiel #3
0
 public static void AttentionPet(Pet pet)
 {
     int attention = pet.GetAttention();
       pet.SetAttention(attention + 10);
 }