public final class TimedMessage extends Object implements Updatable, Renderable
Constructor and Description |
---|
TimedMessage(Text text)
Create a timed message.
|
Modifier and Type | Method and Description |
---|---|
void |
addMessage(String message,
int x,
int y,
int time)
Add a timed message.
|
boolean |
hasMessage()
Check if there are existing message.
|
void |
render(Graphic g) |
void |
update(double extrp) |
public TimedMessage(Text text)
text
- The text renderer to use.public void addMessage(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 boolean hasMessage()
true
if there are messages, false
else.public void render(Graphic g)
render
in interface Renderable
Copyright © 2017 Byron 3D Games Studio. All rights reserved.