Exemple #1
0
 public abstract bool IsValid(MovementProposed m);
 public override bool IsValid(MovementProposed m) => m.Delta.IsCardinal();
 public override bool IsValid(MovementProposed m) => m.Type == MovementType.Attack || map.IsWalkable(m.To);
Exemple #4
0
 public override bool IsValid(MovementProposed m) => m.Type == MovementType.Attack || !map.IsBlocked(m.To);