/*
 *  Copyright (c) 1997 - 2002 by Volker Meyer & Hansjörg Malthaner
 *
 * This file is part of the Simutrans project under the artistic licence.
 */

#ifndef __PEDESTRIAN_READER_H
#define __PEDESTRIAN_READER_H

#include "obj_reader.h"


/*
 *  Autor:
 *      Volker Meyer
 */
class pedestrian_reader_t : public obj_reader_t {
	static pedestrian_reader_t the_instance;

	pedestrian_reader_t() { register_reader(); }
protected:
	void register_obj(obj_besch_t*&) OVERRIDE;
	bool successfully_loaded() const OVERRIDE;
public:
	static pedestrian_reader_t*instance() { return &the_instance; }

	obj_type get_type() const OVERRIDE { return obj_pedestrian; }
	char const* get_type_name() const OVERRIDE { return "pedestrian"; }
	obj_besch_t* read_node(FILE*, obj_node_info_t&) OVERRIDE;
};

#endif
