Пример #1
0
        public Color GetColor(AbsolutePosition pos)
        {
            if (Formation == null)
            {
                if (Items.ContainsKey(pos))
                {
                    return(Items[pos].Color);
                }
                return(Terrain.Color);
            }
            var creature = Formation.GetCreature(pos);

            if (creature == null)
            {
                if (Items.ContainsKey(pos))
                {
                    return(Items[pos].Color);
                }
                return(Terrain.Color);
            }
            return(creature.Color);
        }
Пример #2
0
        public char GetSymbol(AbsolutePosition pos)
        {
            if (Formation == null)
            {
                if (Items.ContainsKey(pos))
                {
                    return(Items[pos].Symbol);
                }
                return(Terrain.Symbol);
            }
            var creature = Formation.GetCreature(pos);

            if (creature == null)
            {
                if (Items.ContainsKey(pos))
                {
                    return(Items[pos].Symbol);
                }
                return(Terrain.Symbol);
            }
            return(creature.Symbol);
        }