standup.clouds
Class MovingImage

java.lang.Object
  extended by standup.clouds.MovingImage
All Implemented Interfaces:
Entity, EntityAnimated

public class MovingImage
extends Object
implements EntityAnimated

Author:
Ruli Manurung

Field Summary
(package private)  int currentX
           
(package private)  int currentY
           
(package private)  int direction
           
(package private)  int frame
           
(package private)  Point from
           
(package private)  Image img
           
(package private)  int steps
           
(package private)  Point to
           
 
Constructor Summary
MovingImage(Image _img, Point _from, Point _to, int _steps, int _direction)
           
 
Method Summary
 void clicked(CloudFrontend mockup)
           
 boolean contains(int x, int y)
           
 void draw(Graphics2D g2)
           
(package private)  void drawImage(Graphics2D g2)
           
 Dimension getCurrentDimension()
           
 Point getCurrentLocation()
           
 String getSpeechText()
           
 boolean scannable()
           
 void step(int _frame)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MovingImage

public MovingImage(Image _img,
                   Point _from,
                   Point _to,
                   int _steps,
                   int _direction)
Method Detail

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()