Example #1
0
        private void SetSelectCharacterStrategy()
        {
            var option = new Option
            {
                Type = OptionType.Select,
                Message = "Please select a character",
                Choices = _characterPile.Select(c => c.Name),
                Amount = 1
            };
            OnSelect = new StandardSelectStrategy(option, SelectCharacter, PossibleNextStep);

            PropertyChanged(PropertyChange.PlayerInTurn);
        }
Example #2
0
        public void DrawDistricts(string pid)
        {
            CheckOption(pid, OptionType.TakeAction);

            var choices = new List<District>();
            for (var i = 0; i < 2; i++)
                choices.Add(_pile.Pop());

            var option = new Option
            {
                Message = "Select a district and discard the other",
                Choices = choices.Select(c => c.Title),
                Amount = 1
            };

            Turn = Data.Turn.BuildADistrict;
            OnSelect = new StandardSelectStrategy(option, SelectDistrict);
        }