Beispiel #1
0
        //TODO: combine? do immutable?
        public void Update(float edge)
        {
            Hexagon = new Hexagon(edge, Hexagon.Center);

            for (var i = 0; i < 3; i++)
            {
                BarsView[i] = new TileBarView(Hexagon, BarsView[i].Number);
            }
        }
Beispiel #2
0
        //TODO: combine? do immutable?
        public void Update(PointF center)
        {
            Hexagon = new Hexagon(Hexagon.Edge, center);

            for (var i = 0; i < 3; i++)
            {
                BarsView[i] = new TileBarView(Hexagon, BarsView[i].Number);
            }
        }
Beispiel #3
0
        protected TileView(Tile tile, float edge, PointF center) : base(edge, center)
        {
            Tile     = tile;
            BarsView = new TileBarView[3];

            for (var i = 0; i < 3; i++)
            {
                var number = GetNumber(i, tile);
                BarsView[i] = new TileBarView(Hexagon, number);
            }
        }