public bool IsAlreadySelected(object selectedObject, Color selectColor) { if (MapObjectTypesConverter.ConvertMapAreaObjectType(selectedObject).BackColor != selectColor) { return(true); } else { WarningMessager.AlreadySelected(); return(false); } }
private bool SelectorSelectEnemyArea(object selectedObject) { return(selectController.IsAlreadySelected(selectedObject, SelectingAreaColor.GetSelectorSelectingEnemyAreaColor()) && areaSelector.SelectOtherStateArea(MapObjectTypesConverter.ConvertMapAreaObjectType(selectedObject), selectorStateNumber)); }