public void paint(final Graphics g) { final Image image; if (rabbit.isMove() && rabbit.getState() == RabbitState.STOP) { image = changeImage(); } else { image = images.get(0); } final Position pos = rabbit.getPosition(); g.drawImage(image, pos.getX(), pos.getY(), rabbit.getWidth(), rabbit.getHeight(), this); }
@Override public boolean changed() { return rabbit.isMove() || rabbit.getState() != RabbitState.STOP || rabbit.getLastactioned(); }