public abstract class UserAction extends Object
Constructor and Description |
---|
UserAction(String name)
Constructs new user action with given name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
void |
fireAction() |
void |
fireActionBegin() |
void |
fireActionEnd() |
String |
getName() |
int |
hashCode() |
protected void |
onAction()
Called as long as the trigger is being held (pressed).
|
protected void |
onActionBegin()
Called once in the same tick when triggered.
|
protected void |
onActionEnd()
Called once in the same tick when trigger was released.
|
String |
toString() |
public UserAction(String name)
name
- unique name that identifies this actionpublic final String getName()
protected void onActionBegin()
protected void onAction()
protected void onActionEnd()
public final void fireActionBegin()
public final void fireAction()
public final void fireActionEnd()
Copyright © 2018. All rights reserved.