Beispiel #1
0
    public void click()
    {
        TileClickHandler tileClickHandler = getTileEventHandler();

        if (tileClickHandler != null)
        {
            active = true;
            currentTileClickHandler = tileClickHandler;
            currentTileClickHandler.leftHold();
        }
    }
Beispiel #2
0
    private void handleHold()
    {
        TileClickHandler tileEventHandler = getTileEventHandler();

        if (tileEventHandler != currentTileClickHandler)
        {
            if (currentTileClickHandler != null)
            {
                currentTileClickHandler.leftHoldRemoved();
            }
            currentTileClickHandler = tileEventHandler;
            if (currentTileClickHandler != null)
            {
                currentTileClickHandler.leftHold();
            }
        }
    }