Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Ferienplan
- {
- public class Ferienplan
- {
- private bool lustZuTrinken();
- private Launen Laune;
- private bool bumZua();
- public static bool ferien;
- private enum Launen { gut, schlecht, maessig, muede, motiviert, pardeeeeeey };
- public Ferienplan()
- {
- Laune = Launen.gut;
- execute();
- }
- public void execute()
- {
- while (ferien)
- {
- if (DateTime.Now.Day > 4)
- {
- makeParty();
- }
- }
- }
- public void makeParty()
- {
- if (!bumZua()&&lustZuTrinken())
- {
- switch (DateTime.Now.Hour)
- {
- case 20: drinkAlcohol(1, 3.5); break;
- case 21: goto case 20;
- case 22: drinkAlcohol(1, 10); break;
- case 23: goto case 22;
- case 24: drinkAlcohol(3, 20); break;
- case 0:drinkAlcohol(1,50);break;
- default: nachLustundLaune(); break;
- }
- spaßHaben();
- makeParty();
- }
- }
- public void spaßHaben();
- private void heimGehen();
- private void ausschlafen();
- private void nachLustundLaune()
- {
- switch (Laune)
- {
- case Launen.muede:
- heimGehen();
- ausschlafen();
- break;
- case Launen.gut:
- //Fill in
- //(bin zu faul, um alles zu definieren xD)
- break;
- //Fill in
- }
- }
- private void drinkAlcohol(int anz, double percent);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement