public bool TryAdjustMinMax(TilePlacement placement) { if (placement.X != x) { return(false); } if (placement.Y < minY) { minY = placement.Y; } if (placement.Y > maxY) { maxY = placement.Y; } return(true); }
public bool TryAdjustMinMax(TilePlacement placement) { if (placement.Y != y) { return(false); } if (placement.X < minX) { minX = placement.X; } if (placement.X > maxX) { maxX = placement.X; } return(true); }
public IMoveDirectionStrategy GetOppositeStrategy(TilePlacement placement) { return(new MoveDirectionStrategyHorizontal(placement.X, placement.X, placement.Y)); }
public void AddPlacement(TilePlacement placement) { placements.Add(placement); SetDirectionStrategy(); }