public interface Actionable extends Trait, Updatable
Modifier and Type | Method and Description |
---|---|
Rectangle |
getButton()
Get the button surface representation.
|
String |
getDescription()
Get the action description.
|
boolean |
isOver()
Check if cursor is over the action button.
|
void |
setAction(Action action)
Set the executable action.
|
void |
setClickAction(int click)
Set the mouse click selection value to
Action.execute() the action. |
void setAction(Action action)
action
- The action to execute.void setClickAction(int click)
Action.execute()
the action.click
- The click number.InputDevicePointer
Rectangle getButton()
String getDescription()
boolean isOver()
true
if cursor is over, false
else.Copyright © 2016 Byron 3D Games Studio. All rights reserved.