示例#1
0
        public void FifthAction(int responseFive)
        {
            MeanGirl boss = new MeanGirl("Bertha", 8, true, 3, 10, 0);

            switch (responseFive)
            {
            case 1:
                Console.WriteLine("She agrees. New year new me.");
                hero.NumberOfFriends  += 1;
                hero.PopularityPoints += 10;
                break;

            case 2:
                Console.WriteLine("$\"Oh like you don't know me!!\" She slaps you accross the face.");
                if (hero.CharacterClaws >= boss.OpponentClaws)
                {
                    Console.WriteLine("Her slap does no harm, you react with an intense fury and scratch the makeup right off her face!");
                    hero.PopularityPoints += 10;
                    boss.HasMakeup         = false;
                }
                else if (hero.CharacterClaws < boss.OpponentClaws)
                {
                    Console.WriteLine("She scratches your face. The pain is too familiar and brings memories of that horrible school you left behind.");
                    hero.PopularityPoints -= 30;
                    break;
                }
                break;

            case 3:
                Console.WriteLine("She tells you that her dad's job got transfered. She's sorry for the past and wants to start fresh.");
                hero.PopularityPoints += 5;
                break;

            case 4:
                Console.WriteLine("You give up. Middle School is not for you. You try and come up with a way to be homeschooled.");
                hero.PopularityPoints -= 30;
                break;

            case 5:
                Console.WriteLine("Good call, you've almost made it through the day. Don't want to start anything.");
                break;

            default:
                break;
            }
        }
示例#2
0
        public void SecondAction(int responseTwo)
        {
            MeanGirl samantha = new MeanGirl("Samantha", 1, false, 3, 45, 2);

            switch (responseTwo)
            {
            case 1:
                Console.WriteLine("You don't respond. You don't want to cause a scene and quietly try to pay attention to the teacher.");
                break;

            case 2:
                Console.WriteLine($"You ask what her problem is. She stops staring, smirks a little bit and says \"You're spunky. My name is Samantha.\"\n" +
                                  $"You have made a friend!");
                hero.NumberOfFriends  += 1;
                hero.PopularityPoints += 5;
                break;

            case 3:
                Console.WriteLine("You introduce yourself. She keeps staring. You introduce yourself again, but a little bit louder. The teacher interrupts \"Excuse me miss. Could you please come up here?\" \n" +
                                  "People are starting to notice you...");
                hero.PopularityPoints -= 10;
                break;

            case 4:
                Console.WriteLine("You stare back. After a moment she flicks you on the forehead, right between your eyes. She slaps you across the face.");
                if (hero.CharacterClaws < samantha.OpponentClaws)
                {
                    Console.WriteLine("You lost the fight!");
                    hero.PopularityPoints -= 15;
                }
                else
                {
                    Console.WriteLine("You won the fight!");
                    hero.PopularityPoints += 5;
                }
                break;

            case 5:
                Console.WriteLine("You say its not polite to stare. She gets offened and scoffs at you, but you get the feeling that most of the class doesn't like her. You feel like you've made a step in the right direction.");
                hero.PopularityPoints += 10;
                break;

            default:
                break;
            }
        }
示例#3
0
        static void Main(string[] args)
        {
            SpeechSynthesizer   synth    = new SpeechSynthesizer();
            CharacterRepository charRepo = new CharacterRepository();
            var      makeup     = false;
            var      nails      = 2;
            var      friends    = 0;
            var      popularity = 0;
            bool     endGame    = false;
            MeanGirl boss       = new MeanGirl("Bertha", 8, true, 3, 10, 0);

            //synth.Speak("You find yourself transported back in time, to a terrible dark place... Middle School ");
            Console.WriteLine($"You find yourself transported back in time, to a terrible dark place... Middle School \n\n\n " +
                              $"You're late and its your first day. You walk up to the office and are met by the Assistant Principal. \n" +
                              $"Assistant Principal: You're late! You better have a good reason! What yo name is?");
            var characterName = Console.ReadLine();

            Console.WriteLine($"{characterName}... Oh you're the new student. I guess I can let it slide this time. Come this way please. \n\n" +
                              $"He takes you into the office...\n \"Now, what grade are you in?\"\n" +
                              $"\t 1. Sixth\n" +
                              $"\t 2. Seventh\n" +
                              $"\t 3. Eighth\n");
            var gradeResponse  = Console.ReadLine();
            var characterGrade = charRepo.GetGrade(gradeResponse);
            var teacherName    = charRepo.GetClassroom(characterGrade);

            Console.Clear();

            Console.WriteLine($"AP:\"Ok so {characterGrade} grade. That will put you in {teacherName}'s Class. It's a very small school here. I'm sure you'll get along just fine...");
            Hero hero = charRepo.CreateCharacter(characterName, characterGrade, makeup, nails, popularity, friends);

            Console.WriteLine($"Congratulations! You have made your character!\n\n");
            charRepo.PrintCharacterDetails(hero);
            Console.WriteLine($"Your goal: Survive your first day of Middle School. Good Luck!");
            Console.WriteLine($"\nPress \"Enter\" to continue.");
            Console.ReadLine();
            Console.Clear();

            if (characterGrade == "Sixth")
            {
                while (endGame == false)
                {
                    Console.WriteLine($"Great. Just Great. It's your first day at a new school and you're late! \n\n" +
                                      $"What do you want to do?\n" +
                                      $"\t 1. Run to the bathroom to put on some makeup\n" +
                                      $"\t 2. Go straight to class\n" +
                                      $"\t 3. Turn around and go home");
                    var responseOne = Int32.Parse(Console.ReadLine());
                    Console.Clear();

                    charRepo.FirstAction(responseOne);

                    if (responseOne == 3)
                    {
                        endGame = true;
                        break;
                    }
                    Console.ReadLine();
                    Console.Clear();

                    Console.WriteLine($"You make it to class and walk in. {teacherName} is in the middle of class introductions. She has you find a seat and the girl next to you is staring at you. What do you do?\n" +
                                      $"\t 1. Do nothing.\n" +
                                      $"\t 2. Ask what her problem is.\n" +
                                      $"\t 3. Introduce yourself.\n" +
                                      $"\t 4. Stare back.\n" +
                                      $"\t 5. Say \"You know, it's not polite to stare.\"\n");
                    var responseTwo = Int32.Parse(Console.ReadLine());
                    charRepo.SecondAction(responseTwo);
                    charRepo.PrintCharacterDetails(hero);
                    Console.ReadLine();
                    Console.Clear();

                    Console.WriteLine($"Your first class is over. Good. One down but how many to go? \n" +
                                      $"{teacherName} let the class go for a short break. In the hall way a girl approaches you. \"Hey new girl!\"\n\n" +
                                      $"What do you do?\n" +
                                      $"\t 1. Dart in the bathroom.\n" +
                                      $"\t 2. Pretend you don't hear her and walk back to class.\n" +
                                      $"\t 3. You sheepishly tell them your name.\"\n" +
                                      $"\t 4. Say \"That's my name, don't wear it out.\"\n" +
                                      $"\t 5. Say nothing.\n");
                    var responseThree = Int32.Parse(Console.ReadLine());
                    Console.Clear();
                    charRepo.ThirdAction(responseThree);
                    Console.ReadLine();
                    Console.Clear();

                    Console.WriteLine($"You get back to class. {teacherName} informs the class that its time for lunch. You were running late this morning and forgot to pack your lunch.\n\n" +
                                      $"What do you do?\n\n" +
                                      $"\t1. Ask {teacherName} if there is a way for you to go home to eat.\n" +
                                      $"\t2. Ask the girl next to you if she would mind sharing er lunch.\n" +
                                      $"\t3. Pretend you feel sick and hide in the bathroom until lunch is over.");
                    var responseFour = Int32.Parse(Console.ReadLine());
                    charRepo.FourthAction(responseFour);
                    Console.ReadLine();
                    Console.Clear();

                    Console.WriteLine($"After lunch you make you way back to class./n/n" +
                                      $"Class goes on fine and you think you've survied the day. But something doesn't feel right. Suddenly a tap on you're shoulder.\n\n" +
                                      $"\"Hello {hero.CharacterName}. It's been a long time...\"" +
                                      $"\nYou turn around to see {boss.OpponentName}! You're nemisis from your old school! She must have moved this summer too!");
                    Console.ReadLine();
                    Console.Clear();

                    Console.WriteLine($"What do you do?\n\n" +
                                      $"\t1. { boss.OpponentName}, \"Listen, can we please forget last year and start off fresh?\"\n" +
                                      $"\t2. Pretend you don't recognize her. \"Who are you?\"\n" +
                                      $"\t3. \"{boss.OpponentName}, what are you doing here\"\n" +
                                      $"\t4. You run away in terror. You don't want to deal with {boss.OpponentName} again.\n" +
                                      $"\t5. You decide to walk away. She's not worth it.");
                    var responseFive = Int32.Parse(Console.ReadLine());
                    charRepo.FifthAction(responseFive);

                    endGame = true;
                }
            }
            else if (characterGrade == "Seventh")
            {
            }
            else
            {
            }
            charRepo.PrintCharacterDetails(hero);
            if (endGame == true && hero.PopularityPoints < 30)
            {
                synth.Speak("Game Over. You lose. Better luck next time. The cake is a lie.");
            }
            else
            {
                synth.Speak("Good job. 179 days of middle school left...ugh");
            }

            Console.ReadLine();
        }
示例#4
0
        public void ThirdAction(int responseThree)
        {
            MeanGirl haelga = new MeanGirl("Haelga", 1, true, 3, 60, 3);

            switch (responseThree)
            {
            case 1:     //make a friend
                Console.WriteLine($"You rush in. That's so much public recognition at once! You immediately regret your desicion, they probably all think you're weird now.\n\n" +
                                  $"\"Hey new girl!\"\n \n" +
                                  $"Oh no! Not in here too! Is nowhere safe?\n" +
                                  $"\"Don't worry, I've been in your shoes. I'll show you around.\"");
                Console.WriteLine("You have made a new friend!");
                hero.NumberOfFriends  += 1;
                hero.PopularityPoints += 10;
                break;

            case 2:     //lose popularity
                Console.WriteLine($"You walk straight past her and kind of look out the side of your eye.\n\n");
                if (hero.HasMakeup == false)
                {
                    Console.WriteLine($"\"Pssht! New Girl's shy. Figures. I would be too if I forgot my makeup.");
                    hero.PopularityPoints -= 10;
                }
                else
                {
                    Console.WriteLine($"\"Yeah keep walking. No one wants to see that outfit.\"");
                    hero.PopularityPoints -= 5;
                };
                break;

            case 3:     //catfight
                Console.WriteLine($"My name is {hero.CharacterName}.\"" +
                                  $"\"I'm sorry what was that? You'll have to speak up doll.\"\n" +
                                  $"You say your name louder...\n" +
                                  $"She makes a swipe at your face.");
                if (hero.CharacterClaws < haelga.OpponentClaws)
                {
                    Console.WriteLine("You lost the fight!");
                    hero.PopularityPoints -= 10;
                }
                else
                {
                    Console.WriteLine("You won the fight!");
                    hero.PopularityPoints -= 10;
                }
                break;

            case 4:     //plus pop points
                Console.WriteLine($"\"Ohhhh {haelga.OpponentName}, she told you! You go girl.\"\n" +
                                  $"You feel you face flush with a little more confidence.");
                hero.PopularityPoints += 15;
                break;

            case 5:     // nothing
                Console.WriteLine("You say nothing. She looks at you, confused, and walks away.");
                break;

            default:
                break;
            }
        }