Esempio n. 1
0
        public EmberCell()
        {
            CellProperties = new EmberCellProperties
            {
                NormalForeground = Color.White,
                ForegroundFov    = Color.Lerp(Foreground, Color.Black, .5f),
                Walkable         = true,
                BlocksFov        = false,
            };

            Foreground = Color.White;
            Background = Color.Black;
            Glyph      = '.';

            LightProperties = new LightEngineProperties();
        }
Esempio n. 2
0
        public EmberCell(Point position, int glyph, Color foreground, Color fov, Color background)
        {
            CellProperties = new EmberCellProperties
            {
                NormalForeground = foreground,
                ForegroundFov    = fov,
                Walkable         = true,
                BlocksFov        = false,
            };

            Position   = position;
            Glyph      = glyph;
            Foreground = foreground;
            Background = background;

            LightProperties = new LightEngineProperties();
        }
Esempio n. 3
0
        public EmberCell()
        {
            CellProperties = new EmberCellProperties
            {
                NormalForeground = Color.White,
                NormalBackground = Color.Black,
                ForegroundFov    = Color.Lerp(Color.White, Color.Black, .5f),
                BackgroundFov    = Color.Black,
                Walkable         = true,
                BlocksFov        = false,
                IsExplored       = false
            };

            Glyph            = ' ';
            LightProperties  = new LightEngineProperties();
            EffectProperties = new EmberEffectProperties();
            Foreground       = CellProperties.NormalForeground;
            Background       = CellProperties.NormalBackground;
        }
Esempio n. 4
0
        public EmberCell(Point position, int glyph, Color foreground, Color fov)
        {
            CellProperties = new EmberCellProperties
            {
                NormalForeground = foreground,
                NormalBackground = Color.Black,
                ForegroundFov    = fov,
                BackgroundFov    = Color.Black,
                Walkable         = true,
                BlocksFov        = false,
                IsExplored       = false
            };

            Position         = position;
            Glyph            = glyph;
            Foreground       = foreground;
            Background       = Color.Black;
            LightProperties  = new LightEngineProperties();
            EffectProperties = new EmberEffectProperties();
        }