public void AddPromoteByReplacementRule(PieceType promotingType, OptionalPromotionLocationDelegate conditionDelegate) { if (PromotingType == null) { PromotingType = promotingType; } AddRule(new PromoteByReplacementRule(promotingType, conditionDelegate)); }
public void AddPromotionCapability (PieceType promotingType, List <PieceType> promotionTypes, List <PieceType> replacementPromotionTypes, OptionalPromotionLocationDelegate conditionDeletage) { PromotionCapability newCapability = new PromotionCapability(); newCapability.PromotingType = promotingType; newCapability.PromotionTypes = promotionTypes; newCapability.ReplacementPromotionTypes = replacementPromotionTypes; newCapability.ConditionDelegate = conditionDeletage; newCapability.FromAndToConditionDelegate = null; promotionCapabilities.Add(newCapability); }
public GrossChessPromotionRule(PieceType promotingType, OptionalPromotionLocationDelegate conditionDelegate) : base(promotingType, conditionDelegate) { }
public PromoteByReplacementRule(PieceType promotingType, OptionalPromotionLocationDelegate conditionDelegate) { this.promotingType = promotingType; condition = conditionDelegate; }