Пример #1
0
        public void writeOver(char c, int x, int y, RColor fore, RColor back)
        {
            Tile temp = new Tile();

            if (c == (char)0)
            {
                temp.glyph = glyphs[x, y].glyph;
            }
            else
            {
                temp.glyph = c;
            }

            temp.backGround = (RColor)back.GetTCODColor(glyphs[x, y].backGround.GetTCODColor());
            temp.foreGround = (RColor)fore.GetTCODColor(temp.backGround.GetTCODColor());

            oldGlyphs[x, y] = glyphs[x, y];

            glyphs[x, y] = temp;

            cursorX++;
            if (cursorX == width)
            {
                cursorX = 0;
                cursorY++;
            }
        }
Пример #2
0
        public void writeOver(string s, int x, int y, RColor fore, RColor back)
        {
            cursorX = x;
            cursorY = y;

            foreach (char c in s)
            {
                writeOver(c, cursorX, cursorY, fore, back);
            }
        }
Пример #3
0
        public void clear(char c, RColor fore, RColor back)
        {
            Tile temp = new Tile();

            temp.glyph      = c;
            temp.foreGround = fore;
            temp.backGround = back;

            clear(temp);
        }
Пример #4
0
        public void write(char c, int x, int y, RColor fore, RColor back)
        {
            Tile temp = new Tile(c, fore, back);

            oldGlyphs[x, y] = glyphs[x, y];

            glyphs[x, y] = temp;

            cursorX++;
            if (cursorX == width)
            {
                cursorX = 0;
                cursorY++;
            }
        }
Пример #5
0
 public void writeOverCenter(string s, int y, RColor fore, RColor back)
 {
     writeOver(s, width / 2 - s.Length / 2, y, fore, back);
 }
Пример #6
0
 public void writeOverCenter(string s, int y, RColor fore)
 {
     writeOverCenter(s, y, fore, defaultBackground);
 }
Пример #7
0
 public void writeOver(string s, RColor fore, RColor back)
 {
     writeOver(s, cursorX, cursorY, fore, back);
 }
Пример #8
0
 public void writeOver(string s, RColor fore)
 {
     writeOver(s, cursorX, cursorY, fore, defaultBackground);
 }
Пример #9
0
 public void writeOver(char c, int x, int y, RColor fore)
 {
     writeOver(c, x, y, fore, defaultBackground);
 }
Пример #10
0
 public void writeOver(char c, RColor fore, RColor back)
 {
     writeOver(c, cursorX, cursorY, fore, back);
 }
Пример #11
0
 public void writeOver(char c, RColor fore)
 {
     writeOver(c, cursorX, cursorY, fore, defaultBackground);
 }
Пример #12
0
 public void write(string s, int x, int y, RColor fore)
 {
     write(s, x, y, fore, defaultBackground);
 }
Пример #13
0
 public void clear(char c, RColor fore)
 {
     clear(c, fore, defaultBackground);
 }
Пример #14
0
 public Tile(char glyph, RColor fore, RColor back)
 {
     this.glyph = glyph;
     foreGround = fore;
     backGround = back;
 }