public LightMap(IFovAlgorithm fovAlgorithm, TerrainMap terrain) { this.fovAlgorithm = fovAlgorithm; this.terrain = terrain; // Resize the lightmap to the dimensions of the dungeon Resize(new Size(terrain.Width, terrain.Height), () => new LightingObject()); }
public VisibilityMap(int width, int height, IFovProfile fovProfile, IFovAlgorithm fovAlgorithm) : base(new Size(width, height), () => new VisibilityObject()) { this.fovProfile = fovProfile; this.fovAlgorithm = fovAlgorithm; }