Implement phase-3 adjacency, movement-state, and tile-control ability primitives
This commit is contained in:
@@ -27,6 +27,9 @@ using SOR.Database.Enums;
|
||||
[PolyType(typeof(DestinationTileAffinityIsCondition), "DestinationTileAffinityIs")]
|
||||
[PolyType(typeof(PreviousTileAffinityIsCondition), "PreviousTileAffinityIs")]
|
||||
[PolyType(typeof(MovedFromOrIntoAffinityCondition), "MovedFromOrIntoAffinity")]
|
||||
[PolyType(typeof(IsAdjacentToTileWithAffinityCondition), "IsAdjacentToTileWithAffinity")]
|
||||
[PolyType(typeof(IsOnOrAdjacentToTileWithAffinityCondition), "IsOnOrAdjacentToTileWithAffinity")]
|
||||
[PolyType(typeof(IsCurrentlyMovingCondition), "IsCurrentlyMoving")]
|
||||
// Player (§6.2)
|
||||
[PolyType(typeof(SPAtLeastCondition), "SPAtLeast")]
|
||||
[PolyType(typeof(SPAtMostCondition), "SPAtMost")]
|
||||
@@ -48,6 +51,7 @@ using SOR.Database.Enums;
|
||||
// Battlefield (§6.5)
|
||||
[PolyType(typeof(UnitCountOnBattlefieldCondition), "UnitCountOnBattlefield")]
|
||||
[PolyType(typeof(CardInZoneCondition), "CardInZone")]
|
||||
[PolyType(typeof(ControlledTileCountWithAffinityCondition), "ControlledTileCountWithAffinity")]
|
||||
public abstract class Condition
|
||||
{
|
||||
/// <summary>
|
||||
@@ -93,6 +97,9 @@ public sealed class MovementTypeIsCondition : Condition { public MovementType Mo
|
||||
public sealed class DestinationTileAffinityIsCondition : Condition { public Affinity Affinity { get; set; } }
|
||||
public sealed class PreviousTileAffinityIsCondition : Condition { public Affinity Affinity { get; set; } }
|
||||
public sealed class MovedFromOrIntoAffinityCondition : Condition { public Affinity Affinity { get; set; } }
|
||||
public sealed class IsAdjacentToTileWithAffinityCondition : Condition { public Affinity Affinity { get; set; } }
|
||||
public sealed class IsOnOrAdjacentToTileWithAffinityCondition : Condition { public Affinity Affinity { get; set; } }
|
||||
public sealed class IsCurrentlyMovingCondition : Condition { }
|
||||
|
||||
// ── Player conditions (§6.2) ──────────────────────────────────────────────────
|
||||
|
||||
@@ -136,3 +143,11 @@ public sealed class CardInZoneCondition : Condition
|
||||
public string CardRef { get; set; } = string.Empty;
|
||||
public string Zone { get; set; } = "Hand";
|
||||
}
|
||||
|
||||
public sealed class ControlledTileCountWithAffinityCondition : Condition
|
||||
{
|
||||
public Affinity Affinity { get; set; }
|
||||
public Comparator Comparator { get; set; } = Comparator.GreaterThanOrEqual;
|
||||
public int N { get; set; }
|
||||
public string Ownership { get; set; } = "Owner";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user