Example #1
0
 public NationsBuilder()
 {
     this.fireNation  = new FireNation();
     this.waterNation = new WaterNation();
     this.airNation   = new AirNation();
     this.earthNation = new EarthNation();
 }
Example #2
0
    public static void Start()
    {
        Nation     airNation   = new AirNation("Air Nation");
        Nation     fireNation  = new FireNation("Fire Nation");
        Nation     waterNation = new WaterNation("Water Nation");
        Nation     earthNation = new EarthNation("Earth Nation");
        List <War> wars        = new List <War>();
        string     input;

        while ((input = Console.ReadLine()) != "Quit")
        {
            var cmdArgs = input.Split(new [] { ' ' }, StringSplitOptions.RemoveEmptyEntries);

            List <Nation> nations = new List <Nation>();
            nations.Add(airNation);
            nations.Add(fireNation);
            nations.Add(waterNation);
            nations.Add(earthNation);
            Execute(cmdArgs, nations, wars);
        }
        for (int i = 0; i < wars.Count; i++)
        {
            Console.WriteLine($"War {i + 1} issued by {wars[i].Name}");
        }
    }
 public NationsBuilder()
 {
     this.airNation   = new AirNation();
     this.waterNation = new WaterNation();
     this.fireNation  = new FireNation();
     this.earthNation = new EarthNation();
     this.warsRecord  = new StringBuilder();
     this.warsCount   = 0;
 }
Example #4
0
 public NationsBuilder()
 {
     this.warStarters = new List <string>();
     this.airNation   = new AirNation();
     this.earthNation = new EarthNation();
     this.fireNation  = new FireNation();
     this.waterNation = new WaterNation();
     this.nations     = new HashSet <Nation>();
 }
Example #5
0
        public NationsBuilder()
        {
            this.airNation   = new AirNation();
            this.earthNation = new EarthNation();
            this.fireNation  = new FireNation();
            this.waterNation = new WaterNation();

            this.issuedWarNation = new List <string>();
        }
Example #6
0
    private List <Nation> AddNations()
    {
        var    currNations = new List <Nation>();
        Nation air         = new AirNation();
        Nation water       = new WaterNation();
        Nation fire        = new FireNation();
        Nation earth       = new EarthNation();

        currNations.Add(air);
        currNations.Add(water);
        currNations.Add(fire);
        currNations.Add(earth);

        return(currNations);
    }
Example #7
0
 public NationsBuilder()
 {
     this.airNation   = new AirNation();
     this.earthNation = new EarthNation();
     this.fireNation  = new FireNation();
     this.waterNation = new WaterNation();
     this.allNations  = new List <Nation>()
     {
         airNation, earthNation, fireNation, waterNation
     };
     this.warRecord       = new StringBuilder();
     this.benderFactory   = new BenderFactory();
     this.monumentFactory = new MonumentFactory();
     this.warNumber       = 1;
 }