Treefrog.Framework.Model.TileGridLayer.InRange C# (CSharp) Method

InRange() public method

public InRange ( TileCoord coord ) : bool
coord TileCoord
return bool
        public bool InRange(TileCoord coord)
        {
            return CheckBounds(coord.X, coord.Y);
        }

Same methods

TileGridLayer::InRange ( LocatedTile tile ) : bool
TileGridLayer::InRange ( int x, int y ) : bool

Usage Example

Example #1
0
        public override void ApplyBrush(TileGridLayer tileLayer, int x, int y)
        {
            List <LocatedTile> updatedTiles = new List <LocatedTile>();

            foreach (LocatedTile tile in Tiles)
            {
                if (tileLayer.InRange(x + tile.X, y + tile.Y))
                {
                    tileLayer.AddTile(x + tile.X, y + tile.Y, tile.Tile);
                }
            }
        }
All Usage Examples Of Treefrog.Framework.Model.TileGridLayer::InRange