Exemplo n.º 1
0
        internal void ShowSideNeighbours(HexSide hexSide)
        {
            if (Children.Contains(_RoadPlaces))
                Children.Remove(_RoadPlaces);

            _RoadPlaces = new RoutePlaces(this, hexSide);
            Children.Add(_RoadPlaces);
        }
Exemplo n.º 2
0
        public void SetMoveToShip(HexSide movedShip)
        {
            if (Children.Contains(_ShipPlaces))
                Children.Remove(_ShipPlaces);

            _ShipPlaces = new RoutePlaces(Game.PlayerOnTurn.GetShipBuildPlaces(Game, Board, movedShip), this);

            Children.Add(_ShipPlaces);
        }
Exemplo n.º 3
0
 public void PickShip()
 {
     if (Children.Contains(_ShipPlaces)) Children.Remove(_ShipPlaces);
     _ShipPlaces = new RoutePlaces(_Game, this, true);
     Children.Add(_ShipPlaces);
 }
Exemplo n.º 4
0
        public void SetMoveShip()
        {
            if (Children.Contains(_ShipPlaces))
                Children.Remove(_ShipPlaces);

            _ShipPlaces = new RoutePlaces(Game.PlayerOnTurn.GetMoveableShips(Game, Board), this);

            Children.Add(_ShipPlaces);
        }
Exemplo n.º 5
0
        public void PickRoad(HexPoint townOrCity)
        {
            if (Children.Contains(_RoadPlaces)) Children.Remove(_RoadPlaces);

            if (townOrCity != null)
            {
                _RoadPlaces = new RoutePlaces(_Game, this, townOrCity);
            }
            else
            {
                _RoadPlaces = new RoutePlaces(_Game, this, false);
            }
            Children.Add(_RoadPlaces);
        }