public final class TimedMessage
extends java.lang.Object
Constructor and Description |
---|
TimedMessage(com.b3dgs.lionengine.Text text)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addMessage(java.lang.String message,
int x,
int y,
int time)
Add a timed message.
|
boolean |
hasMessage()
Check if there are existing message.
|
void |
render(com.b3dgs.lionengine.Graphic g)
Render the list of active messages.
|
void |
update()
Update the message list.
|
public TimedMessage(com.b3dgs.lionengine.Text text)
text
- The text drawer reference.public void addMessage(java.lang.String message, int x, int y, int time)
message
- The message string.x
- The horizontal location.y
- The vertical location.time
- The remaining time.public void update()
public void render(com.b3dgs.lionengine.Graphic g)
g
- The graphics output.public boolean hasMessage()
true
if there are messages, false
else.