Esempio n. 1
0
        public void ResetSelections()
        {
            while (selectedTakeOverAreaNodes.Count != 0)
            {
                AreaSelectNode oldAreaNode = selectedTakeOverAreaNodes.Pop();
                currentAreas[oldAreaNode.areaNumber].BackColor = StateObjectTypesConverter.ConvertStateFlagObjectType(oldAreaNode.currentFlag);
            }

            while (selectorBetAreaNodes.Count != 0)
            {
                AreaSelectNode oldAreaNode = selectorBetAreaNodes.Pop();
                currentAreas[oldAreaNode.areaNumber].BackColor = StateObjectTypesConverter.ConvertStateFlagObjectType(oldAreaNode.currentFlag);
            }
        }
Esempio n. 2
0
 private bool IsStateOfAnotherEnemyPlayer(Button selectedArea)
 {
     return(!StackIsEmpty() && selectedArea.BackColor != StateObjectTypesConverter.ConvertStateFlagObjectType(selectedTakeOverAreaNodes.First().currentFlag));
 }