summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-02 14:57:03 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-02 14:57:03 +0300
commit1abda37d9a6173f67ee12600ca8948cd205ebad1 (patch)
tree6a1374afd218cf2277e2a3f4bae0625cff5bddc7
parent3f022390bacc04946dcd7cfb2be5f23a78c49c83 (diff)
downloadplus-1abda37d9a6173f67ee12600ca8948cd205ebad1.tar.gz
plus-1abda37d9a6173f67ee12600ca8948cd205ebad1.tar.bz2
plus-1abda37d9a6173f67ee12600ca8948cd205ebad1.tar.xz
plus-1abda37d9a6173f67ee12600ca8948cd205ebad1.zip
Move mapitemtype into enums directory.
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/Makefile.am2
-rw-r--r--src/being/localplayer.cpp3
-rw-r--r--src/enums/resources/map/mapitemtype.h (renamed from src/resources/mapitemtype.h)6
-rw-r--r--src/gui/popups/popupmenu.cpp3
-rw-r--r--src/gui/viewport.cpp2
-rw-r--r--src/gui/widgets/avatarlistbox.cpp3
-rw-r--r--src/gui/widgets/tabs/socialtabbase.h2
-rw-r--r--src/net/ea/beinghandler.cpp4
-rw-r--r--src/resources/map/map.cpp3
-rw-r--r--src/resources/map/mapitem.cpp3
-rw-r--r--src/resources/map/maplayer.cpp3
-rw-r--r--src/resources/map/speciallayer.cpp2
-rw-r--r--src/resources/mapreader.cpp3
14 files changed, 24 insertions, 17 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6a3ded644..1f806a932 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -652,7 +652,7 @@ SET(SRCS
resources/db/moddb.cpp
resources/db/moddb.h
resources/mapinfo.h
- resources/mapitemtype.h
+ enums/resources/map/mapitemtype.h
resources/mapreader.cpp
resources/mapreader.h
resources/modinfo.cpp
diff --git a/src/Makefile.am b/src/Makefile.am
index 4246b2e2e..fac1fce70 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -796,7 +796,7 @@ manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \
resources/db/moddb.cpp \
resources/db/moddb.h \
resources/mapinfo.h \
- resources/mapitemtype.h \
+ enums/resources/map/mapitemtype.h \
resources/mapreader.cpp \
resources/mapreader.h \
resources/modinfo.cpp \
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 1e75865a6..af3f3df03 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -42,6 +42,8 @@
#include "enums/being/beingdirection.h"
+#include "enums/resources/map/mapitemtype.h"
+
#include "particle/particle.h"
#include "input/keyboardconfig.h"
@@ -70,7 +72,6 @@
#include "resources/iteminfo.h"
#include "resources/itemslot.h"
-#include "resources/mapitemtype.h"
#include "resources/db/weaponsdb.h"
diff --git a/src/resources/mapitemtype.h b/src/enums/resources/map/mapitemtype.h
index 2d8bb5f1c..38677f479 100644
--- a/src/resources/mapitemtype.h
+++ b/src/enums/resources/map/mapitemtype.h
@@ -18,8 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef RESOURCES_MAPITEMTYPE_H
-#define RESOURCES_MAPITEMTYPE_H
+#ifndef ENUMS_RESOURCES_MAPITEMTYPE_H
+#define ENUMS_RESOURCES_MAPITEMTYPE_H
namespace MapItemType
{
@@ -44,4 +44,4 @@ namespace MapItemType
};
} // namespace MapItemType
-#endif // RESOURCES_MAPITEMTYPE_H
+#endif // ENUMS_RESOURCES_MAPITEMTYPE_H
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 10b1db4ac..9adcc7b58 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -34,6 +34,8 @@
#include "being/playerrelation.h"
#include "being/playerrelations.h"
+#include "enums/resources/map/mapitemtype.h"
+
#include "input/inputmanager.h"
#include "gui/buttontext.h"
@@ -77,7 +79,6 @@
#include "resources/chatobject.h"
#include "resources/iteminfo.h"
-#include "resources/mapitemtype.h"
#include "resources/db/npcdb.h"
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index ff7946ed6..caf55fcca 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -29,7 +29,7 @@
#include "sdlshared.h"
#include "textmanager.h"
-#include "resources/mapitemtype.h"
+#include "enums/resources/map/mapitemtype.h"
#include "resources/map/map.h"
#include "resources/map/mapitem.h"
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index 47debb1e7..308de5746 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -27,6 +27,8 @@
#include "being/localplayer.h"
+#include "enums/resources/map/mapitemtype.h"
+
#include "gui/gui.h"
#include "gui/popupmanager.h"
#include "gui/skin.h"
@@ -41,7 +43,6 @@
#include "gui/windows/chatwindow.h"
#include "resources/image.h"
-#include "resources/mapitemtype.h"
#include "resources/map/map.h"
diff --git a/src/gui/widgets/tabs/socialtabbase.h b/src/gui/widgets/tabs/socialtabbase.h
index 24d11eaf1..98d2ddcb7 100644
--- a/src/gui/widgets/tabs/socialtabbase.h
+++ b/src/gui/widgets/tabs/socialtabbase.h
@@ -23,7 +23,7 @@
#include "actormanager.h"
-#include "resources/mapitemtype.h"
+#include "enums/resources/map/mapitemtype.h"
#define addAvatars(mob, str, type) \
{\
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index d50366884..76fe061ed 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -30,12 +30,12 @@
#include "being/playerrelation.h"
#include "being/playerrelations.h"
+#include "enums/resources/map/mapitemtype.h"
+
#include "gui/viewport.h"
#include "gui/windows/socialwindow.h"
-#include "resources/mapitemtype.h"
-
#include "resources/map/map.h"
#include "net/serverfeatures.h"
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp
index 8441252e2..b96abc7d2 100644
--- a/src/resources/map/map.cpp
+++ b/src/resources/map/map.cpp
@@ -39,12 +39,13 @@
#include "enums/resources/notifytypes.h"
+#include "enums/resources/map/mapitemtype.h"
+
#include "gui/userpalette.h"
#include "particle/particle.h"
#include "resources/ambientlayer.h"
-#include "resources/mapitemtype.h"
#include "resources/resourcemanager.h"
#include "resources/subimage.h"
diff --git a/src/resources/map/mapitem.cpp b/src/resources/map/mapitem.cpp
index 16aa5794e..f1d045e7f 100644
--- a/src/resources/map/mapitem.cpp
+++ b/src/resources/map/mapitem.cpp
@@ -20,13 +20,14 @@
#include "resources/map/mapitem.h"
+#include "enums/resources/map/mapitemtype.h"
+
#include "gui/gui.h"
#include "gui/userpalette.h"
#include "gui/fonts/font.h"
#include "resources/image.h"
-#include "resources/mapitemtype.h"
#include "resources/resourcemanager.h"
#include "render/graphics.h"
diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp
index 666df1b4a..97c2ba5f1 100644
--- a/src/resources/map/maplayer.cpp
+++ b/src/resources/map/maplayer.cpp
@@ -30,12 +30,13 @@
#include "being/localplayer.h"
+#include "enums/resources/map/mapitemtype.h"
+
#include "gui/userpalette.h"
#include "render/graphics.h"
#include "resources/image.h"
-#include "resources/mapitemtype.h"
#include "resources/map/mapitem.h"
#include "resources/map/maprowvertexes.h"
diff --git a/src/resources/map/speciallayer.cpp b/src/resources/map/speciallayer.cpp
index 811c5c03f..95ec90e35 100644
--- a/src/resources/map/speciallayer.cpp
+++ b/src/resources/map/speciallayer.cpp
@@ -20,7 +20,7 @@
#include "resources/map/speciallayer.h"
-#include "resources/mapitemtype.h"
+#include "enums/resources/map/mapitemtype.h"
#include "resources/map/mapconsts.h"
#include "resources/map/mapitem.h"
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index d376ddbb4..54ee95ea5 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -28,6 +28,8 @@
#endif
#include "logger.h"
+#include "enums/resources/map/mapitemtype.h"
+
#include "resources/map/map.h"
#include "resources/map/mapconsts.h"
#include "resources/map/mapheights.h"
@@ -36,7 +38,6 @@
#include "resources/animation.h"
#include "resources/beingcommon.h"
#include "resources/image.h"
-#include "resources/mapitemtype.h"
#include "resources/resourcemanager.h"
#ifdef USE_OPENGL