public class TypingAdapter extends java.lang.Object implements TypingListener
| Constructor and Description |
|---|
TypingAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
end()
Called when the char progression reaches the end.
|
void |
event(java.lang.String event)
Called each time an
EVENT token is processed. |
void |
onChar(long ch)
Called when a new character is displayed.
|
java.lang.String |
replaceVariable(java.lang.String variable)
Called when variable tokens are replaced in text.
|
public void event(java.lang.String event)
TypingListenerEVENT token is processed.event in interface TypingListenerevent - Name of the event specified in the token. e.g. {EVENT=player_name} will have
player_name as argument.public void end()
TypingListenerend in interface TypingListenerpublic java.lang.String replaceVariable(java.lang.String variable)
TypingListenernull is returned.replaceVariable in interface TypingListenervariable - The variable name assigned to the {VAR} token. For example, in {VAR=townName},
the variable will be townNamenull if this method should be ignored and the regular values should be
used instead.TypingLabel.setVariable(String, String),
TypingLabel.setVariables(java.util.Map),
TypingLabel.setVariables(com.badlogic.gdx.utils.ObjectMap)public void onChar(long ch)
TypingListeneronChar in interface TypingListener