/*
 * Copyright (c) 1997 - 2002 Hansjörg Malthaner
 *
 * This file is part of the Simutrans project under the artistic license.
 * (see license.txt)
 */

#ifndef building_place_finder_t_h
#define building_place_finder_t_h

#include "placefinder.h"
#include "../simworld.h"

/**
 * building_placefinder_t:
 *
 * Search a free site for building using function find_place().
 *
 * @author V. Meyer
 */
class building_placefinder_t : public placefinder_t {
public:
	building_placefinder_t(karte_t *welt, sint16 radius = -1) : placefinder_t(welt, radius) {}

	virtual bool is_area_ok(koord pos, sint16 w, sint16 h, climate_bits cl) const {
		return welt->square_is_free(pos, w, h, NULL, cl);
	}
};

#endif
