1 /*
2  * Copyright (C) 2006-2019 Christopho, Solarus - http://www.solarus-games.org
3  *
4  * Solarus is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * Solarus is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 #ifndef SOLARUS_ENTITY_TYPE_INFO_H
18 #define SOLARUS_ENTITY_TYPE_INFO_H
19 
20 #include "solarus/core/Common.h"
21 #include "solarus/core/EnumInfo.h"
22 #include "solarus/entities/EntityType.h"
23 #include <map>
24 #include <string>
25 
26 namespace Solarus {
27 
28 template <>
29 struct SOLARUS_API EnumInfoTraits<EntityType> {
30   static const std::string pretty_name;
31 
32   static const EnumInfo<EntityType>::names_type names;
33 };
34 
35 class SOLARUS_API EntityTypeInfo : public EnumInfo<EntityType> {
36 
37   public:
38 
39     static bool can_be_stored_in_map_file(EntityType type);
40     static bool can_be_created_from_lua_api(EntityType type);
41 
42 };
43 
44 }  // namespace Solarus
45 
46 #endif
47 
48