public void KeyPress(libtcod.TCODKey key) { if (LKeyDown != null) { LKeyDown.Call(); } }
public void Draw(libtcod.TCODConsole target) { Console.clear(); if (LDraw != null) { try { LDraw.Call(); } catch (Exception ex) { Game.GetSingleton().TConsole.WriteLine(ex.Message, TCODColor.red); } } TCODConsole.blit(Console, 0, 0, Console.getWidth(), Console.getHeight(), target, x, y); }
public void Draw(libtcod.TCODConsole cons) { cons.putChar(_posX, _posY, '>'); }
public override bool Init(libtcod.TCODColor fore, MessageHandler messageHandler) { if (initialized) return false; ForeColor = fore; _messageHandler = messageHandler; Activate(); _visible = true; initialized = true; return true; }