com.rafaskoberg.gdx.typinglabel.TokenEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of typing-label Show documentation
Show all versions of typing-label Show documentation
A libGDX Label that appears as if it was being typed in real time.
The newest version!
package com.rafaskoberg.gdx.typinglabel;
/** Container representing a token, parsed parameters and its position in text. */
class TokenEntry implements Comparable {
String token;
TokenCategory category;
int index;
float floatValue;
String stringValue;
Effect effect;
TokenEntry(String token, TokenCategory category, int index, float floatValue, String stringValue) {
this.token = token;
this.category = category;
this.index = index;
this.floatValue = floatValue;
this.stringValue = stringValue;
}
@Override
public int compareTo(TokenEntry o) {
return Integer.compare(index, o.index);
}
}