Ejemplo n.º 1
0
 public void SetCity(ICity city)
 {
     if (_city == null || !_city.Equals(city))
     {
         _city = city;
     }
 }
    public override void OnCityClicked(ICity city)
    {
        if (city.Equals(_city))
        {
            return;
        }

//		if (_unitsInRange.Contains(city) && _unit.ActionPoints > 0)
//		{
//			_unit.DealDamage(city);
//			_cellGrid.CellGridState = new CellGridStateUnitSelected(_cellGrid, _unit);
//		}

        if (city.PlayerNumber.Equals(_city.PlayerNumber))
        {
            _cellGrid.CellGridState = new CellGridStateCitySelected(_cellGrid, city);
        }
    }