public void ShowPoints(List<HexPoint> points) { if (Children.Contains(_BuildPlaces)) Children.Remove(_BuildPlaces); _BuildPlaces = new BuildPlaces(points, this); Children.Add(_BuildPlaces); }
public void PickPoint(bool isStart) { if (Children.Contains(_BuildPlaces)) Children.Remove(_BuildPlaces); if (isStart) _BuildPlaces = new BuildPlaces(this, _Game.AllTownsCities()); else _BuildPlaces = new BuildPlaces(this, Game.PlayerOnTurn); Children.Add(_BuildPlaces); }
public void ShowNeighbours(HexSide side) { if (Children.Contains(_BuildPlaces)) Children.Remove(_BuildPlaces); _BuildPlaces = new BuildPlaces(this, side); Children.Add(_BuildPlaces); }
public void PickCity(bool isStart) { if (Children.Contains(_BuildPlaces)) Children.Remove(_BuildPlaces); if (isStart) _BuildPlaces = new BuildPlaces(this, _Game.AllTownsCities()); else _BuildPlaces = new BuildPlaces(this, Game.PlayerOnTurn.Towns.ToList<HexPoint>(), true); Children.Add(_BuildPlaces); }