private bool CanDealFullDamageTo(DragonX target) { return(target.Occupies(_fullDamageLocation)); }
private bool CanDealPartialDamageTo(DragonX target) { return(GameEngine.IsFreeSpace(_fullDamageLocation) && _partialDamageLocations.Any(location => target.Occupies(location)) || target.Occupies(_noDistanceDamageLocation) && GameEngine.IsFreeSpace(_partialDamageLocations[0])); }
public bool IsFreeSpace(Location.Location location) { return(IsWithinBounds(location.X, location.Y) && !_whiteDragon.Occupies(location) && !_blackDragon.Occupies(location)); }