示例#1
0
        public bool IsAlreadySelected(object selectedObject, Color selectColor)
        {
            if (MapObjectTypesConverter.ConvertMapAreaObjectType(selectedObject).BackColor != selectColor)
            {
                return(true);
            }

            else
            {
                WarningMessager.AlreadySelected();
                return(false);
            }
        }
示例#2
0
 private bool SelectorSelectEnemyArea(object selectedObject)
 {
     return(selectController.IsAlreadySelected(selectedObject, SelectingAreaColor.GetSelectorSelectingEnemyAreaColor()) && areaSelector.SelectOtherStateArea(MapObjectTypesConverter.ConvertMapAreaObjectType(selectedObject), selectorStateNumber));
 }