public static void doWork() { Konoha team10 = new Konoha(); team10.MakeTeam("Asuma", "Choji", "Ino", "Shikamaru"); Taijustsu bukijutsu = new Taijustsu(); bukijutsu.useChakra("name"); if (team10.leader == "ASUMA") { RankS teamAsuma = new RankS(); teamAsuma.acceptMission(); Taijustsu asuma = new Taijustsu(); asuma.useChakra("Asuma"); } Personnel.attack(); Taijustsu hidanBukijutsu = new Taijustsu(); hidanBukijutsu.useChakra("Hidan"); Fire asumaFire = new Fire(); asumaFire.useChakra("Asuma"); Personnel.isFighting("string"); Shadow.ShadowNeckBinding(); Kunoichi ino = new Kunoichi(); ino.controlChakra("Ino"); Personnel hidan = new Personnel(); Personnel kakuzu = new Personnel(); Akatsuki hidanAgain = new Akatsuki(); Akatsuki kakuzuAgain = new Akatsuki(); hidan.Speak("Hidan"); kakuzu.Speak("Kakuzu"); Taijustsu.ChakraBlades(); hidanAgain.Speak("hidan"); kakuzuAgain.Speak("Kakuzu"); Mission newMission = new Mission(); newMission.getMission(); RankD.acceptMission(); }
public void MakeTeam(string leader, string member1, string member2, string member3) { this.leader = leader; ; Console.WriteLine("Which person do you want on your team? Hidan or Asuma?"); string pickLeader = Console.ReadLine().ToUpper(); if (pickLeader == "ASUMA") { Console.WriteLine($"You are part of Team 10, which consists of {leader}, {member1}, {member2}, {member3}. "); } else if (pickLeader == "HIDAN") { Akatsuki.MakeTeam("Hidan", "Kakuzu"); } else { Console.WriteLine("Incorrect response. I'll pick your team for you. "); Akatsuki.MakeTeam("Hidan", "Kakuzu"); } }