예제 #1
0
 public void Identifiers(MobDesign mob)
 {
     dummyName   = mob.GetName;
     dummyGender = mob.GetGender;
     dummyClass  = mob.GetClass;
     dummyTrait  = mob.GetPersonalityTrait;
 }
예제 #2
0
        static void Main(string[] args)
        {
            Credits  cred = new Credits();
            MainMenu menu = new MainMenu();
            Random   rand = new Random();
            string   userInput;

            userInput = Console.ReadLine();
            while (userInput != "10")
            {
                switch (userInput)
                {
                case "1":     //START GAME
                    CharacterCreation newChar     = new CharacterCreation();
                    MobDesign         mob         = new MobDesign();
                    PlayerStats       playerstats = new PlayerStats(newChar);
                    _ = new Inventory(newChar, playerstats);
                    Player    player    = new Player(newChar, playerstats);
                    TestDummy testdummy = new TestDummy();
                    MobStats  mobstats  = new MobStats(mob);
                    _ = new StartFight(player, playerstats, rand, testdummy, mobstats);

                    //to reduce clutter, when testing, exit
                    Console.WriteLine("END OF CASE 1, EXITING");
                    Environment.Exit(0);
                    break;

                case "2":     //LOAD GAME
                    Console.WriteLine("Option 2 Works\n");
                    break;

                case "3":     //OPTIONS
                    Console.WriteLine("Option 3 Works\n");
                    break;

                case "7":
                    _ = new Help();
                    break;

                case "8":
                    cred.PrintCredits();
                    break;

                case "9":
                    //Quit
                    Console.WriteLine("Ending Session...");
                    cred.PrintCredits();
                    _ = new Quit();

                    break;

                default:
                    Console.WriteLine("\nInvalid Option |" + userInput + "|" + "\n" + "Try again\n");
                    break;
                }
                menu.CallMenu();
                userInput = Console.ReadLine();
            }
        }
예제 #3
0
 public MobStats(MobDesign mob)
 {
     AddStamina(0);
     AddStrength(0);
     AddAgility(0);
     AddIntelligence(0, mob);
     AddSpeed(0);
     RandomBaseMeleeDamage();
     InitializeMeleeDamage();
     AddCritChance(0);
     AddHitChance(0);
     AddDefense(0);
     TotalHealth();
     //Console.WriteLine(ToString());
 }
예제 #4
0
 public void AddIntelligence(int amountOfIntelligence, MobDesign mob)
 {
     totalIntelligence = amountOfIntelligence + totalIntelligence;
     if (mob.GetClass == "Warrior")
     {
         GetResource = 100;
     }
     if (mob.GetClass == "Rogue")
     {
         GetResource = 100;
     }
     if (mob.GetClass == "Mage")
     {
         GetResource = totalIntelligence * 15;
     }
 }
예제 #5
0
 public TestDummy(Player player, MobDesign mob)
 {
     Identifiers(mob);
 }