standup.clouds
Class MovingImage
java.lang.Object
standup.clouds.MovingImage
- All Implemented Interfaces:
- Entity, EntityAnimated
public class MovingImage
- extends Object
- implements EntityAnimated
- Author:
- Ruli Manurung
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
img
final Image img
from
final Point from
to
final Point to
steps
final int steps
frame
int frame
direction
int direction
currentX
int currentX
currentY
int currentY
MovingImage
public MovingImage(Image _img,
Point _from,
Point _to,
int _steps,
int _direction)
step
public void step(int _frame)
- Specified by:
step
in interface EntityAnimated
getCurrentDimension
public Dimension getCurrentDimension()
- Specified by:
getCurrentDimension
in interface Entity
getCurrentLocation
public Point getCurrentLocation()
- Specified by:
getCurrentLocation
in interface Entity
draw
public void draw(Graphics2D g2)
- Specified by:
draw
in interface Entity
drawImage
void drawImage(Graphics2D g2)
contains
public boolean contains(int x,
int y)
clicked
public void clicked(CloudFrontend mockup)
scannable
public boolean scannable()
getSpeechText
public String getSpeechText()