Пример #1
0
        public void Clear()
        {
            switch (WindowType)
            {
            case GHWinType.Map:
                ClientGamePage.ClearMap();
                break;
            }

            lock (PutStrsLock)
            {
                PutStrs.Clear();
            }

            lock (_clientGame.WindowsLock)
            {
                _height      = 0;
                _width       = 0;
                _pixelWidth  = 0;
                _pixelHeight = 0;
                CursX        = 0;
                CursY        = 0;
            }

            if (_winType == GHWinType.Menu || _winType == GHWinType.Text)
            {
                ConcurrentQueue <GHRequest> queue;
                if (ClientGame.RequestDictionary.TryGetValue(_clientGame, out queue))
                {
                    queue.Enqueue(new GHRequest(_clientGame, GHRequestType.ClearWindowView, _winId));
                }
            }
        }
Пример #2
0
 public void Curs(int x, int y)
 {
     CursX = x;
     CursY = y;
     if (WindowType == GHWinType.Map)
     {
         ClientGamePage.SetMapCursor(x, y);
     }
 }
Пример #3
0
 public void PrintGlyph(int x, int y, int glyph, int bkglyph, int symbol, int color, uint special, LayerInfo layers)
 {
     ClientGamePage.SetMapSymbol(x, y, glyph, bkglyph, symbol, color, special, layers);
 }