Ejemplo n.º 1
0
        public static KartenContainer.Rohstoffkarte GetErtragByLandFeldTyp(Hexagon.LandfeldTyp typ)
        {
            switch (typ)
            {
            case LandfeldTyp.Weideland:
                return(KartenContainer.Rohstoffkarte.Wolle);

            case LandfeldTyp.Ackerland:
                return(KartenContainer.Rohstoffkarte.Getreide);

            case LandfeldTyp.BergwerkGold:
                return(KartenContainer.Rohstoffkarte.Gold);

            case LandfeldTyp.Eisenmine:
                return(KartenContainer.Rohstoffkarte.Eisen);

            case LandfeldTyp.MeersFeld:
                return(KartenContainer.Rohstoffkarte.Wasser);

            case LandfeldTyp.Wohnstaette:
                return(KartenContainer.Rohstoffkarte.Bewohner);

            case LandfeldTyp.Wald:
                return(KartenContainer.Rohstoffkarte.Holz);

            default:
                throw new NotImplementedException($"GetErtragByLandFeldTyp ({typ}) ");
            }
        }
Ejemplo n.º 2
0
        public Hexagon(HexagonPosition position, Hexagon.LandfeldTyp landfeldTyp, int nr, List <HexagonPoint> points)
        {
            this.Position = position;

            this.LandFeldTyp = landfeldTyp;
            this.Nr          = nr;
            this.Points      = points;

            this.Edges = new List <Game.HexagonEdge>();
            Edges.Add(new Game.HexagonEdge(points[0], points[1], 0));
            Edges.Add(new Game.HexagonEdge(points[1], points[2], 1));
            Edges.Add(new Game.HexagonEdge(points[2], points[3], 2));
            Edges.Add(new Game.HexagonEdge(points[3], points[4], 3));
            Edges.Add(new Game.HexagonEdge(points[4], points[5], 4));
            Edges.Add(new Game.HexagonEdge(points[5], points[0], 5));
        }