Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef EDITOR_EDITOR_COMMON_HPP_INCLUDED
00023 #define EDITOR_EDITOR_COMMON_HPP_INCLUDED
00024
00025 #include "../exceptions.hpp"
00026 #include "../log.hpp"
00027
00028 extern lg::log_domain log_editor;
00029 #define DBG_ED LOG_STREAM_INDENT(debug, log_editor)
00030 #define LOG_ED LOG_STREAM_INDENT(info, log_editor)
00031 #define WRN_ED LOG_STREAM_INDENT(warn, log_editor)
00032 #define ERR_ED LOG_STREAM_INDENT(err, log_editor)
00033 #define SCOPE_ED log_scope2(log_editor, __func__)
00034
00035 class display;
00036 class gamemap;
00037
00038 namespace editor {
00039
00040 struct editor_exception : public game::error
00041 {
00042 editor_exception(const std::string& msg)
00043 : game::error(msg)
00044 {
00045 }
00046 };
00047
00048 struct editor_logic_exception : public editor_exception
00049 {
00050 editor_logic_exception(const std::string& msg)
00051 : editor_exception(msg)
00052 {
00053 }
00054 };
00055
00056
00057 class brush;
00058 class editor_action;
00059 class editor_controller;
00060 class editor_display;
00061 class editor_map;
00062 class editor_mouse_handler;
00063 class map_context;
00064 class map_fragment;
00065 class mouse_action;
00066
00067 }
00068
00069 #endif