Exemple #1
0
 public ControlGroup(string colorGroupName, string[] commands,
                     GameStateCondition neededGameStateCondition) : base(
         neededGameStateCondition)
 {
     this.colorGroupName = colorGroupName;
     this.commands       = commands.ToList();
 }
Exemple #2
0
        public ControlGroupSet(ControlGroupSet copyFromSet, ControlGroup[] controlGroups,
                               GameStateCondition neededGameStateCondition = null)
        {
            List <ControlGroup> controlGroupList = new List <ControlGroup>();

            controlGroupList.AddRange(copyFromSet.controlGroups);
            controlGroupList.AddRange(controlGroups);

            this.controlGroups = controlGroupList.ToArray();

            if (neededGameStateCondition != null)
            {
                this.NeededGameStateCondition = neededGameStateCondition;
            }
            else if (copyFromSet.NeededGameStateCondition != null)
            {
                this.NeededGameStateCondition = copyFromSet.NeededGameStateCondition;
            }
        }
Exemple #3
0
 public ControlGroup(string[] commands, GameStateCondition neededGameStateCondition) : this(null, commands,
                                                                                            neededGameStateCondition)
 {
 }
Exemple #4
0
 public ControlGroupSet(ControlGroup[] controlGroups, GameStateCondition neededGameStateCondition = null) : base(
         neededGameStateCondition)
 {
     this.controlGroups = controlGroups;
 }