Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
 public VisibilityMap(int width, int height, IFovProfile fovProfile, IFovAlgorithm fovAlgorithm)
     : base(new Size(width, height), () => new VisibilityObject())
 {
     this.fovProfile   = fovProfile;
     this.fovAlgorithm = fovAlgorithm;
 }