Merge pull request #3635 from deathbeam/add-currently-hovered-tile

Add currently hovered tile to TileIndicators
This commit is contained in:
Tomas Slusny
2018-10-02 10:55:42 +02:00
committed by GitHub
5 changed files with 89 additions and 8 deletions

View File

@@ -368,6 +368,23 @@ public interface Client extends GameEngine
*/
int getMouseCurrentButton();
/**
* Schedules checking of current region tile for next frame, so ${@link Client#getSelectedSceneTile()} ()} will
* return actual value.
*
* @param checkClick when true next frame selected region tile will be updated
*/
void setCheckClick(boolean checkClick);
/**
* Sets current mouse hover position. This value is automatically updated only when right-clicking in game.
* Setting this value together with ${@link Client#setCheckClick(boolean)} will update ${@link Client#getSelectedSceneTile()} ()}
* for next frame.
*
* @param position current mouse hover position
*/
void setMouseCanvasHoverPosition(Point position);
/**
* Gets the currently selected tile (ie. last right clicked tile).
*