Exemple #1
0
        public void drawPolyomino(Canvas canvas, Vector2 location, double minoSize, bool ghost)
        {
            foreach (Vector2 v in Minos)
            {
                Mino m = new Mino(v + location, this);
                m.drawMino(canvas, minoSize, ghost);
            }

            return;
        }
Exemple #2
0
        public void drawPolyomino( Canvas canvas, double minoSize, double locx, double locy, bool ghost )
        {
            foreach (Vector2 v in Minos)
            {
                double x = v.X * minoSize + locx;
                double y = -v.Y * minoSize + locy;

                // todo slow garbage making
                Mino m = new Mino(new Vector2(int.MaxValue, int.MaxValue ), this) ;
                m.drawMino(canvas, minoSize, x, y, ghost);
            }
        }