package market;

import java.awt.Graphics;

public class Market {
    int c; //kapacitet
    int q; //kolicina
    int x, y, w, h;
    
    public Market(int x, int y , int w, int h) {
	this.x=x;
	this.y=y;
	this.w=w;
	this.h=h;
    }
    
    boolean contains(Salesman s){
	return (s.x>=x && s.x<=x+w && s.y>=y && s.y<=y+h);
    }
    
    void drawSelf(Graphics g){
	g.drawRect(x,y,w,h);
    }
}
