import java.awt.*;

public class Vehicle
{
	public int x;
	public int y;
	public Color col;

	public Vehicle(int xp, int yp, Color c) {
		x = xp;
		y = yp;
		col = c;
	}

	public void move(int dir) {

		switch(dir) {
			// up
			case 0:
				y-=5;
				break;
			// down
			case 1:
				y+=5;
				break;
			// left
			case 2:
				x-=5;
				break;
			// right
			case 3:
				x+=5;
				break;
			default:
				break;
		}
	}

}
