public void playedWithDog(boolean gettingDirty) { if ((getTime() - getTimeLastEaten()) > THIRTYMINUTES) { DogService.INSTANCE.updateSatisfaction(15); } else { DogService.INSTANCE.updateSatisfaction(-5, 60); Toast.makeText( view.getContext(), "Pas op! Wacht met spelen tot 30 minuten nadat je hond gegeten heeft!", Toast.LENGTH_LONG) .show(); } if (Math.random() <= 0.75 && gettingDirty) { setDirty(true); // setView(DogMood.DIRTY); } // setView(DogMood.HAPPY); DogService.INSTANCE.setWantsToPlay(false); setTimeLastPlayed(new Date(getTime())); }