package candyfactory;

public class Truck extends Thread {

	int x,y,dx,dy,step;
	CandyPanel panel;
	
	public Truck(int x, int y, int dx, int dy, int step, CandyPanel panel) {
		this.x=x;
		this.y=y;
		this.dx=dx;
		this.dy=dy;
		this.step=step;
		this.panel=panel;
	}
	
	void move(){
		
	}
	
	@Override
	public void run() {
		// TODO Auto-generated method stub
		super.run();
		while(true){
			move();
			try {
				sleep(10);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			panel.repaint();
		}
	}
}
