Ejemplo n.º 1
0
        /// <summary>Handles the setup instruction.</summary>
        public void Setup(SetupSuperRegionsInstruction instruction)
        {
            Guard.NotNull(instruction, "instruction");

            foreach (var info in instruction.SuperRegions)
            {
                Add(new SuperRegion(info.Id, info.BonusArmiesReward, this));
            }
        }
Ejemplo n.º 2
0
        private void ParseSetupMap(string line, string[] tokens)
        {
            switch (tokens[1])
            {
            case "super_regions":
                this.Map.Setup(SetupSuperRegionsInstruction.Detokenize(tokens)); break;

            case "regions":
                this.Map.Setup(SetupRegionsInstruction.Detokenize(tokens)); break;

            case "neighbors":
                this.Map.Setup(SetupNeighborInstruction.Detokenize(tokens)); break;
            }
        }