Ejemplo n.º 1
0
 public CornerFace(int piecePosition, char color, Sq1ImageProp properties) : base(piecePosition, color, properties)
 {
     SetCoordFromPolar(0, piecePosition);
     SetCoordFromPolar(properties.ShortFaceDist, piecePosition);
     SetCoordFromPolar(properties.LongFaceDist, piecePosition + 2);
     SetCoordFromPolar(properties.ShortFaceDist, piecePosition + 4);
 }
Ejemplo n.º 2
0
 public EdgeSide(int piecePosition, char color, Sq1ImageProp properties) : base(piecePosition, color, properties)
 {
     SetCoordFromPolar(properties.ShortFaceDist, piecePosition);
     SetCoordFromPolar(properties.ShortSideDist, piecePosition);
     SetCoordFromPolar(properties.ShortSideDist, piecePosition + 2);
     SetCoordFromPolar(properties.ShortFaceDist, piecePosition + 2);
 }
Ejemplo n.º 3
0
        public CornerSide(int piecePosition, char color, CornerSideType type, Sq1ImageProp properties) : base(piecePosition, color, properties)
        {
            SetCoordFromPolar(properties.LongFaceDist, piecePosition + 2);
            SetCoordFromPolar(properties.LongSideDist, piecePosition + 2);
            var shortOffest = type == CornerSideType.First ? 0 : 4;

            SetCoordFromPolar(properties.ShortSideDist, piecePosition + shortOffest);
            SetCoordFromPolar(properties.ShortFaceDist, piecePosition + shortOffest);
        }
Ejemplo n.º 4
0
        public MiddleSticker(int piecePosition, bool flipped, char color, Sq1ImageProp properties) : base(piecePosition, color, properties)
        {
            double width = properties.ImageLength / 3 * (flipped ? 1 : 2);

            if (properties.PlaceDOnRight)
            {
            }
            else
            {
                _coords.Add(new CoordPair(0, properties.ImageLength));
                _coords.Add(new CoordPair(0, properties.ImageLength + properties.FaceSpacer));
                _coords.Add(new CoordPair(properties.ImageLength / 3, properties.ImageLength + properties.FaceSpacer));
                _coords.Add(new CoordPair(0, properties.ImageLength));
                SetCoordFromPolar(properties.ShortFaceDist, piecePosition);
                SetCoordFromPolar(properties.ShortFaceDist, piecePosition + 2);
            }
        }
Ejemplo n.º 5
0
 public Sticker(int piecePosition, char color, Sq1ImageProp properties)
 {
     Color         = properties.ColorScheme.GetFace(color);
     PiecePosition = piecePosition;
     Properties    = properties;
 }
Ejemplo n.º 6
0
 public Edge(string stickerDef, int position, Sq1ImageProp properties)
 {
     Face = new EdgeFace(position, stickerDef[0], properties);
     Side = new EdgeSide(position, stickerDef[1], properties);
 }
Ejemplo n.º 7
0
 public Corner(string stickerDef, int position, Sq1ImageProp properties)
 {
     Face  = new CornerFace(position, stickerDef[0], properties);
     Sides = new[] { new CornerSide(position, stickerDef[1], CornerSide.CornerSideType.First, properties),
                     new CornerSide(position, stickerDef[2], CornerSide.CornerSideType.Second, properties) };
 }