public Bishop(string pieceName, int team, Point startPos, Image chessImage) : base(team, startPos, chessImage) { name = "Bishop_" + pieceName; //looper kan niet vooruit slaan hitMoves = new HitMoves(); hitMoves.TopRight = new Point[] { new Point(1, 1), new Point(2, 2), new Point(3, 3), new Point(4, 4), new Point(5, 5), new Point(6, 6), new Point(7, 7), new Point(8, 8), }; hitMoves.TopLeft = new Point[] { new Point(-1, 1), new Point(-2, 2), new Point(-3, 3), new Point(-4, 4), new Point(-5, 5), new Point(-6, 6), new Point(-7, 7), new Point(-8, 8), }; hitMoves.BotRight = new Point[] { new Point(1, -1), new Point(2, -2), new Point(3, -3), new Point(4, -4), new Point(5, -5), new Point(6, -6), new Point(7, -7), new Point(8, -8), }; hitMoves.BotLeft = new Point[] { new Point(-1, -1), new Point(-2, -2), new Point(-3, -3), new Point(-4, -4), new Point(-5, -5), new Point(-6, -6), new Point(-7, -7), new Point(-8, -8), }; }
public Rook(string pieceName, int team, Point startPos, Image chessImage) : base(team, startPos, chessImage) { name = "Rook_" + pieceName; //looper kan niet vooruit slaan hitMoves = new HitMoves(); hitMoves.Top = new Point[] { new Point(0, 1), new Point(0, 2), new Point(0, 3), new Point(0, 4), new Point(0, 5), new Point(0, 6), new Point(0, 7), new Point(0, 8), }; hitMoves.Bot = new Point[] { new Point(0, -1), new Point(0, -2), new Point(0, -3), new Point(0, -4), new Point(0, -5), new Point(0, -6), new Point(0, -7), new Point(0, -8), }; hitMoves.Right = new Point[] { new Point(1, 0), new Point(2, 0), new Point(3, 0), new Point(4, 0), new Point(5, 0), new Point(6, 0), new Point(7, 0), new Point(8, 0), }; hitMoves.Left = new Point[] { new Point(-1, 0), new Point(-2, 0), new Point(-3, 0), new Point(-4, 0), new Point(-5, 0), new Point(-6, 0), new Point(-7, 0), new Point(-8, 0), }; }
public Pawn(string pieceName, int team, Point startPos, Image chessImage) : base(team, startPos, chessImage) { name = "Pawn_" + pieceName; //looper kan niet vooruit slaan hitMoves = new HitMoves(); hitMoves.TopLeft = new Point[] { new Point(-1, 1) }; hitMoves.TopRight = new Point[] { new Point(1, 1), }; hitMoves.Walk = new Point[] { new Point(0, 1), new Point(0, 2) }; }
public Knight(string pieceName, int team, Point startPos, Image chessImage) : base(team, startPos, chessImage) { name = "Knight_" + pieceName; //looper kan niet vooruit slaan hitMoves = new HitMoves(); hitMoves.Top = new Point[] { new Point(-2, 1), }; hitMoves.TopRight = new Point[] { new Point(-1, 2), }; hitMoves.TopLeft = new Point[] { new Point(2, 1), }; hitMoves.Right = new Point[] { new Point(1, 2) }; hitMoves.Bot = new Point[] { new Point(-2, -1), }; hitMoves.BotRight = new Point[] { new Point(-1, -2), }; hitMoves.BotLeft = new Point[] { new Point(2, -1), }; hitMoves.Left = new Point[] { new Point(1, -2) }; }
public Queen(string pieceName, int team, Point startPos, Image chessImage) : base(team, startPos, chessImage) { name = "Queen_" + pieceName; //Up down left right hitMoves = new HitMoves(); hitMoves.Top = new Point[] { new Point(0, 1), new Point(0, 2), new Point(0, 3), new Point(0, 4), new Point(0, 5), new Point(0, 6), new Point(0, 7), new Point(0, 8) }; hitMoves.Bot = new Point[] { new Point(0, -1), new Point(0, -2), new Point(0, -3), new Point(0, -4), new Point(0, -5), new Point(0, -6), new Point(0, -7), new Point(0, -8) }; hitMoves.Right = new Point[] { new Point(1, 0), new Point(2, 0), new Point(3, 0), new Point(4, 0), new Point(5, 0), new Point(6, 0), new Point(7, 0), new Point(8, 0) }; hitMoves.Left = new Point[] { new Point(-1, 0), new Point(-2, 0), new Point(-3, 0), new Point(-4, 0), new Point(-5, 0), new Point(-6, 0), new Point(-7, 0), new Point(-8, 0) }; hitMoves.TopRight = new Point[] { new Point(1, 1), new Point(2, 2), new Point(3, 3), new Point(4, 4), new Point(5, 5), new Point(6, 6), new Point(7, 7), new Point(8, 8) }; hitMoves.TopLeft = new Point[] { new Point(-1, 1), new Point(-2, 2), new Point(-3, 3), new Point(-4, 4), new Point(-5, 5), new Point(-6, 6), new Point(-7, 7), new Point(-8, 8) }; hitMoves.BotRight = new Point[] { new Point(1, -1), new Point(2, -2), new Point(3, -3), new Point(4, -4), new Point(5, -5), new Point(6, -6), new Point(7, -7), new Point(8, -8) }; hitMoves.BotLeft = new Point[] { new Point(-1, -1), new Point(-2, -2), new Point(-3, -3), new Point(-4, -4), new Point(-5, -5), new Point(-6, -6), new Point(-7, -7), new Point(-8, -8) }; }