public Device(IBufferedBitmap bmp, ILineDrawingAlgorithm lineDrawing, IClippingAlgorithm clippingAlgorithm) { Bitmap = bmp; LineDrawingAlgorithm = lineDrawing; ClippingAlgorithm = clippingAlgorithm; ClippingAlgorithm.SetBoundingRectangle(new Vector2(0, 0), new Vector2(Bitmap.PixelWidth, Bitmap.PixelHeight)); }
public Device(BufferedBitmap bufferedBitmap) { this.bufferedBitmap = bufferedBitmap; lineDrawingAlgorithm = new LineDrawingAlgorithm(); clippingAlgorithm = new LineClippingAlgorithm(); clippingAlgorithm.SetBoundingRectangle( new Vector2(0, 0), new Vector2(bufferedBitmap.PixelWidth, bufferedBitmap.PixelHeight)); }
public VaultBasedDungeonMapGenerator(ISystemContainer systemContainer, string floorCell, string wallCell, int numberOfVaults, int maxTries, double vaultChance, IEntity branch) { _systemContainer = systemContainer; _floorCell = systemContainer.PrototypeSystem.Get(floorCell); _wallCell = systemContainer.PrototypeSystem.Get(wallCell); _numberOfVaults = numberOfVaults; _branch = branch; _maxTries = maxTries; _lineDrawing = new BresenhamLineDrawingAlgorithm(); _tunnelPathfinding = new AStarPathfindingAlgorithm(false, PassableToTunneling, 500); _vaultChance = vaultChance; }