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 |
---|---|
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() |
static boolean |
isActive(IEntity entity) |
void |
render(java.awt.Graphics2D g) |
void |
setFont(java.awt.Font font) |
void |
update()
This method is called by the game loop on all objects that need to update
their attributes.
|
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 IEntity getEntity()
public SpeechBubbleAppearance getAppearance()
public java.awt.Font getFont()
public void render(java.awt.Graphics2D g)
render
in interface IRenderable
public void setFont(java.awt.Font font)
public void update()
IUpdateable
update
in interface IUpdateable