ARCed.Controls.ImageSelectXnaPanel.GetTileAtPoint C# (CSharp) Метод

GetTileAtPoint() публичный Метод

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.
Результат 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

ImageSelectXnaPanel::GetTileAtPoint ( Point point ) : int