Beispiel #1
0
 public void ShowPoints(List<HexPoint> points)
 {
     if (Children.Contains(_BuildPlaces))
         Children.Remove(_BuildPlaces);
     _BuildPlaces = new BuildPlaces(points, this);
     Children.Add(_BuildPlaces);
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        public void ShowNeighbours(HexSide side)
        {
            if (Children.Contains(_BuildPlaces))
                Children.Remove(_BuildPlaces);

            _BuildPlaces = new BuildPlaces(this, side);
            Children.Add(_BuildPlaces);
        }
Beispiel #4
0
        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);
        }