예제 #1
0
 public void KeyPress(libtcod.TCODKey key)
 {
     if (LKeyDown != null)
     {
         LKeyDown.Call();
     }
 }
예제 #2
0
 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);
 }
예제 #3
0
 public void Draw(libtcod.TCODConsole cons)
 {
     cons.putChar(_posX, _posY, '>');
 }
예제 #4
0
파일: LightSource.cs 프로젝트: bilwis/SH2RL
        public override bool Init(libtcod.TCODColor fore, MessageHandler messageHandler)
        {
            if (initialized)
                return false;

            ForeColor = fore;
            _messageHandler = messageHandler;
            Activate();

            _visible = true;
            initialized = true;
            return true;
        }