public class OdorWorldRenderer
extends java.lang.Object
Constructor and Description |
---|
OdorWorldRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g,
OdorWorld world,
int screenWidth,
int screenHeight)
Draws the odor world.
|
int |
getBalloonLocationX(RotatingEntity entity) |
int |
getBalloonLocationY(RotatingEntity entity) |
java.awt.image.BufferedImage |
getHearingSensorImage(Hearing sensor)
Draws the thought bubble.
|
java.awt.image.BufferedImage |
getSpeechBalloon(Speech effector)
Draws the speech balloon.
|
void |
setBackground(java.awt.Image background)
Sets the background to draw.
|
public void setBackground(java.awt.Image background)
background
- public void draw(java.awt.Graphics2D g, OdorWorld world, int screenWidth, int screenHeight)
world
- screenWidth
- screenHeight
- g
- public java.awt.image.BufferedImage getSpeechBalloon(Speech effector)
effector
- public java.awt.image.BufferedImage getHearingSensorImage(Hearing sensor)
sensor
- public int getBalloonLocationX(RotatingEntity entity)
entity
- the entity to be rendered.public int getBalloonLocationY(RotatingEntity entity)
entity
- the entity to be rendered.