Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.87 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Ferienplan
  4. {
  5.     public class Ferienplan
  6.     {
  7.         private bool lustZuTrinken();
  8.         private Launen Laune;
  9.         private bool bumZua();
  10.         public static bool ferien;
  11.  
  12.  
  13.         private enum Launen { gut, schlecht, maessig, muede, motiviert, pardeeeeeey };
  14.  
  15.         public Ferienplan()
  16.         {
  17.             Laune = Launen.gut;
  18.             execute();
  19.         }
  20.         public void execute()
  21.         {
  22.             while (ferien)
  23.             {
  24.                 if (DateTime.Now.Day > 4)
  25.                 {
  26.                     makeParty();
  27.                 }
  28.             }
  29.         }
  30.         public void makeParty()
  31.         {
  32.             if (!bumZua()&&lustZuTrinken())
  33.             {
  34.                 switch (DateTime.Now.Hour)
  35.                 {
  36.                     case 20: drinkAlcohol(1, 3.5); break;
  37.                     case 21: goto case 20;
  38.                     case 22: drinkAlcohol(1, 10); break;
  39.                     case 23: goto case 22;
  40.                     case 24: drinkAlcohol(3, 20); break;
  41.                     case 0:drinkAlcohol(1,50);break;
  42.                     default: nachLustundLaune(); break;
  43.                 }
  44.                 spaßHaben();
  45.                 makeParty();
  46.             }
  47.         }
  48.         public void spaßHaben();
  49.         private void heimGehen();
  50.         private void ausschlafen();
  51.         private void nachLustundLaune()
  52.         {
  53.             switch (Laune)
  54.             {
  55.                 case Launen.muede:
  56.                     heimGehen();
  57.                     ausschlafen();
  58.                     break;
  59.                 case Launen.gut:
  60.                 //Fill in
  61.                 //(bin zu faul, um alles zu definieren xD)
  62.                     break;
  63.                 //Fill in
  64.             }
  65.         }
  66.         private void drinkAlcohol(int anz, double percent);        
  67.     }
  68.    
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement