Пример #1
0
 public void AddLayer(OpenTKTile _tile, FColor _color, EDirections _direction, bool _isCorpse)
 {
     m_layers.Add(new LayerInfo()
     {
         Tile = _tile, Color = _color, Direction = _direction, IsCorpse = _isCorpse
     });
 }
        public ATile CreateTile(int _col, int _row, FColor _color)
        {
            var openTKTile = new OpenTKTile(_col, _row, _color);

            Tiles.Add(openTKTile);
            return(openTKTile);
        }
Пример #3
0
        public void DrawTile(OpenTKTile _tile, int _x, int _y, FColor _color, EDirections _direction, bool _isCorpse)
        {
            if (_x < 0 || _y < 0 || _x >= m_tilesInRow || _y >= m_tilesInColumn)
            {
                return;
            }
            var info = m_tiles[_x, _y];

            info.IsFogged = false;
            info.AddLayer(_tile, _color, _direction, _isCorpse);
        }
Пример #4
0
		public void DrawTile(OpenTKTile _tile, int _x, int _y, FColor _color, EDirections _direction, bool _isCorpse)
		{
			if(_x<0 || _y<0 || _x>=m_tilesInRow || _y>=m_tilesInColumn) return;
			var info = m_tiles[_x, _y];
			info.IsFogged = false;
			info.AddLayer(_tile, _color, _direction, _isCorpse);
		}
		public ATile CreateTile(int _col, int _row, FColor _color)
		{
			var openTKTile = new OpenTKTile(_col, _row, _color);
			Tiles.Add(openTKTile);
			return openTKTile;
		}
Пример #6
0
		public void AddLayer(OpenTKTile _tile, FColor _color, EDirections _direction, bool _isCorpse)
		{
			m_layers.Add(new LayerInfo(){Tile = _tile, Color = _color, Direction = _direction, IsCorpse = _isCorpse});
		}