Exemplo n.º 1
0
        public InterruptAssignment()
        {
            Sets = new Dictionary <int, InterruptSet>
            {
                { 1, new InterruptSet() },
                { 2, new InterruptSet() },
                { 3, new InterruptSet() },
                { 4, new InterruptSet() }
            };

            Tendrils = new InterruptAdd();
        }
Exemplo n.º 2
0
        private static void AssignRest(List <OrbAssignment> validChoices, InterruptAdd interruptAdd, InterruptSet set)
        {
            foreach (var assignment in validChoices)
            {
                if (IsAssigned(assignment.Player, set))
                {
                    continue;
                }

                if (interruptAdd.Interrupts[1] == null)
                {
                    interruptAdd.Interrupts[1] = assignment.Player;
                    continue;
                }
                if (interruptAdd.Interrupts[2] == null)
                {
                    interruptAdd.Interrupts[2] = assignment.Player;
                    break;
                }
            }
        }