-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pawn.cs
29 lines (27 loc) · 812 Bytes
/
Pawn.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsFormsApp1
{
class Pawn:Piece
{
public Pawn(MyColor co, String n) : base(co, n)
{
}
public override void highlightMove(int row, int col, MyColor playerColor, Cell[,] allcells)
{
this.pawnHighlight( row, col, allcells,true);
}
public override void checkFootPrint(int row, int col, Cell[,] allcells)
{
this.pawnHighlight(row, col, allcells, false);
}
public override bool highlightProAreas(int row, int col, int chkSrcX, int chkSrcY, int chkDesX, int chkDesY, Cell[,] allcells,bool highlight)
{
int destX = -1, destY = -1;
return pawnCheck(row, col, chkSrcX, chkSrcY, chkDesX, chkDesY, ref destX, ref destY, allcells,highlight);
}
}
}