public void printDebug() { GameTerminal debugTerminal = terminalManager.findTerminal("Debug"); if (debugTerminal != null) { if (parent.debug) { debugTerminal.clear((char)0, new RColor(255, 255, 255, 255), new RColor(0, 0, 0, 30)); debugTerminal.write("Playtime: " + string.Format("{0:0.00}", TCODSystem.getElapsedSeconds()) + " FPS: " + TCODSystem.getFps().ToString(), 1, 0, new RColor(255, 255, 255, 255), new RColor(0, 0, 0, 30)); } } }
public void drawTerminals(bool debug) { GameTerminal debugTerminal = null; foreach (GameTerminal terminal in terminals) { if (terminal.Name == "Debug" && debug) { debugTerminal = terminal; } else if (terminal.Name != "Debug") { terminal.draw(true, false); } } if (debugTerminal != null) { debugTerminal.draw(true, false); } }