ARCed.Controls.TilesetXnaPanel.GetTileAtPoint C# (CSharp) Method

GetTileAtPoint() public method

Gets the ID of the tile at the specified X and Y.
public GetTileAtPoint ( int x, int y ) : int
x int X-coordinate value, in pixels.
y int Y-coordinate value, in pixels.
return int
        public int GetTileAtPoint(int x, int y)
        {
            int row = x / Constants.TILESIZE;
            int column = y / Constants.TILESIZE;
            return Constants.AUTO_IDS + (row + (column * Constants.TILEWIDTH));
        }

Same methods

TilesetXnaPanel::GetTileAtPoint ( Point point ) : int