Exemplo n.º 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++;
            }
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 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++;
            }
        }
Exemplo n.º 5
0
 public void writeOverCenter(string s, int y, RColor fore, RColor back)
 {
     writeOver(s, width / 2 - s.Length / 2, y, fore, back);
 }
Exemplo n.º 6
0
 public void writeOverCenter(string s, int y, RColor fore)
 {
     writeOverCenter(s, y, fore, defaultBackground);
 }
Exemplo n.º 7
0
 public void writeOver(string s, RColor fore, RColor back)
 {
     writeOver(s, cursorX, cursorY, fore, back);
 }
Exemplo n.º 8
0
 public void writeOver(string s, RColor fore)
 {
     writeOver(s, cursorX, cursorY, fore, defaultBackground);
 }
Exemplo n.º 9
0
 public void writeOver(char c, int x, int y, RColor fore)
 {
     writeOver(c, x, y, fore, defaultBackground);
 }
Exemplo n.º 10
0
 public void writeOver(char c, RColor fore, RColor back)
 {
     writeOver(c, cursorX, cursorY, fore, back);
 }
Exemplo n.º 11
0
 public void writeOver(char c, RColor fore)
 {
     writeOver(c, cursorX, cursorY, fore, defaultBackground);
 }
Exemplo n.º 12
0
 public void write(string s, int x, int y, RColor fore)
 {
     write(s, x, y, fore, defaultBackground);
 }
Exemplo n.º 13
0
 public void clear(char c, RColor fore)
 {
     clear(c, fore, defaultBackground);
 }
Exemplo n.º 14
0
 public Tile(char glyph, RColor fore, RColor back)
 {
     this.glyph = glyph;
     foreGround = fore;
     backGround = back;
 }