コード例 #1
0
ファイル: Cat.cs プロジェクト: aurepetk/Learning_FarmAnimals
        public void Usage(Circumstances circumstances)
        {
            switch ((int)circumstances.Weather)
            {
                case 0:
                    Console.WriteLine("Sits near the heat source and doesn't react to your commands at all. NO USAGE.");
                    break;
                case 1:
                    Console.WriteLine("Sits on your lap and warms you with it's fluffiness.");
                    break;
                case 2:
                    Console.WriteLine("Licks your warm face and cools you a little.");
                    break;
                case 3:
                    Console.WriteLine("Lies in the shadow and doesn't pay any attention to you. NO USAGE.");
                    break;
                case 4:
                    Console.WriteLine("Sits with you inside and gives you warmnees and calmness.");
                    break;
                case 5:
                    Console.WriteLine("Sits on your head and gives you shadow.");
                    break;
                case 6:
                    Console.WriteLine("Protects you from storm with it's fluffiness.");
                    break;
            }

            switch ((int)circumstances.DayTime)
            {
                case 0:
                    Console.WriteLine("Sleeps on your bed and doesn't care about you. NO USAGE.";
                    break;
                case 1:
                    Console.WriteLine("Let's you enjoy it's fluffiness.");
                    break;
                case 2:
                    Console.WriteLine("Warms you with it's fur.");
                    break;
                case 3:
                    Console.WriteLine("Hunts mice.");
                    break;
            }


        }
コード例 #2
0
ファイル: Dog.cs プロジェクト: aurepetk/Learning_FarmAnimals
 public void Usage(Circumstances circumstances)
 {
 }