public class SpeechBubble extends java.lang.Object implements IUpdateable, IRenderable
| Modifier and Type | Field and Description |
|---|---|
static SpeechBubbleAppearance |
DEFAULT_APPEARANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(SpeechBubbleListener listener) |
static SpeechBubble |
create(IEntity entity,
java.awt.Font font,
java.lang.String text) |
static SpeechBubble |
create(IEntity entity,
java.awt.Font font,
java.lang.String text,
Sound typeSound) |
static SpeechBubble |
create(IEntity entity,
java.lang.String text) |
static SpeechBubble |
create(IEntity entity,
java.lang.String text,
SpeechBubbleAppearance appearance,
java.awt.Font font) |
SpeechBubbleAppearance |
getAppearance() |
IEntity |
getEntity() |
java.awt.Font |
getFont() |
int |
getTextDisplayTime() |
void |
hide() |
static boolean |
isActive(IEntity entity) |
void |
render(java.awt.Graphics2D g)
Renders the visual contents of this instance onto the provided graphics context.
|
void |
setFont(java.awt.Font font) |
void |
setTextDisplayTime(int duration) |
void |
update()
This method is called by the game loop on all objects that are attached to the loop.
|
public static final SpeechBubbleAppearance DEFAULT_APPEARANCE
public static SpeechBubble create(IEntity entity, java.lang.String text, SpeechBubbleAppearance appearance, java.awt.Font font)
public static SpeechBubble create(IEntity entity, java.lang.String text)
public static SpeechBubble create(IEntity entity, java.awt.Font font, java.lang.String text)
public static SpeechBubble create(IEntity entity, java.awt.Font font, java.lang.String text, Sound typeSound)
public static boolean isActive(IEntity entity)
public void addListener(SpeechBubbleListener listener)
public IEntity getEntity()
public SpeechBubbleAppearance getAppearance()
public java.awt.Font getFont()
public void render(java.awt.Graphics2D g)
IRenderable
If an Entity implements this interface, this method will be called right after the entity was rendered from the environment.
Allowing for a custom rendering mechanism.
This interface can be implemented in general by anything that should be rendered to the game's screen.
render in interface IRenderableg - The current graphics object onto which this instance will render its visual contents.RenderEngine.renderEntity(Graphics2D, de.gurkenlabs.litiengine.entities.IEntity)public void setFont(java.awt.Font font)
public int getTextDisplayTime()
public void setTextDisplayTime(int duration)
public void update()
IUpdateableClientConfiguration.update in interface IUpdateableClientConfiguration.setMaxFps(int)public void hide()