// Down private void DownRight(Point cp, bool SupportPosition) { if (HelperFunction.KnightDownRight(ref cp)) { if (SupportPosition) { this.ProcessBlockInclusive(cp.X, cp.Y); } else { this.ProcessBlock(cp.X, cp.Y); } } }
private void GoRightDown(Point cp, bool SupportPosition) { if (HelperFunction.IncXIncY(ref cp)) { if (SupportPosition) { ProcessBlockInclusive(cp.X, cp.Y); } else { ProcessBlock(cp.X, cp.Y); } } }
private void GoLeftUp(Point cp, bool SupportPosition) { if (HelperFunction.DecXDecY(ref cp)) { if (SupportPosition) { ProcessBlockInclusive(cp.X, cp.Y); } else { ProcessBlock(cp.X, cp.Y); } } }
private void GoDown(Point cp, Byte steps) { byte aStep = 0; while (aStep < steps) { if (HelperFunction.IncY(ref cp)) { ProceedIfNoPiece(cp.X, cp.Y); } aStep++; } }
private void GoRightUp(Point cp, bool SupportPosition) { if (HelperFunction.IncXDecY(ref cp)) { if (SupportPosition) { ProcessBlockForPawnInclusive(cp.X, cp.Y); } else { ProcessBlockForPawn(cp.X, cp.Y); } } }
private void GoLeftDown(Point cp, bool SupportPosition) { if (HelperFunction.DecXIncY(ref cp)) { if (SupportPosition) { ProcessBlockForPawnInclusive(cp.X, cp.Y); } else { ProcessBlockForPawn(cp.X, cp.Y); } } }
private void GoDown(Point cp, bool SupportPosition) { while (HelperFunction.IncY(ref cp)) { if (SupportPosition) { if (!ProcessBlockInclusive(cp.X, cp.Y)) { break; } } else { if (!ProcessBlock(cp.X, cp.Y)) { break; } } } }