1 /***************************************************************************
2 badguy_specs.h - badguys properties table
5 copyright : (C) 2004 by Ricardo Cruz
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
18 #ifndef SUPERTUX_BADGUY_SPECS_H
19 #define SUPERTUX_BADGUY_SPECS_H
24 #include "utils/lispreader.h"
26 using namespace SuperTux;
33 class BadGuySpecsManager;
34 extern BadGuySpecsManager* badguyspecs_manager;
36 class BadGuySpecsManager
39 BadGuySpecsManager(const std::string& filename);
40 ~BadGuySpecsManager();
42 void load_resfile(const std::string& filename);
44 * WARNING: You must not delete the returned object.
46 BadGuySpecs* load(const std::string& name);
49 typedef std::map<std::string, BadGuySpecs*> BadGuysSpecs;
50 BadGuysSpecs badguys_specs;
56 BadGuySpecs(LispReader& reader);
57 BadGuySpecs(std::string& kind);
60 std::string get_name();
71 #endif /*SUPERTUX_BADGUY_SPECS_H*/