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++; } }
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); } }
public void clear(char c, RColor fore, RColor back) { Tile temp = new Tile(); temp.glyph = c; temp.foreGround = fore; temp.backGround = back; clear(temp); }
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++; } }
public void writeOverCenter(string s, int y, RColor fore, RColor back) { writeOver(s, width / 2 - s.Length / 2, y, fore, back); }
public void writeOverCenter(string s, int y, RColor fore) { writeOverCenter(s, y, fore, defaultBackground); }
public void writeOver(string s, RColor fore, RColor back) { writeOver(s, cursorX, cursorY, fore, back); }
public void writeOver(string s, RColor fore) { writeOver(s, cursorX, cursorY, fore, defaultBackground); }
public void writeOver(char c, int x, int y, RColor fore) { writeOver(c, x, y, fore, defaultBackground); }
public void writeOver(char c, RColor fore, RColor back) { writeOver(c, cursorX, cursorY, fore, back); }
public void writeOver(char c, RColor fore) { writeOver(c, cursorX, cursorY, fore, defaultBackground); }
public void write(string s, int x, int y, RColor fore) { write(s, x, y, fore, defaultBackground); }
public void clear(char c, RColor fore) { clear(c, fore, defaultBackground); }
public Tile(char glyph, RColor fore, RColor back) { this.glyph = glyph; foreGround = fore; backGround = back; }