public override bool Equals(ACommand otherCmd) { if (otherCmd is AttackCommand other) { return((AllyPos.Equals(other.AllyPos)) && (Target.Equals(other.Target))); } else { return(false); } }
public abstract bool Equals(ACommand otherCmd);
public override bool Equals(ACommand otherCmd) { return(otherCmd is InspectCommand); }