summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-05 11:56:09 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:57 +0300
commit3b1d570f626786d141d99a7923669e82e0c125ca (patch)
tree32b97502634d7eff39a8f83ce0ba921c55291694
parent89c117a64240de90c19004c846edf7c524f6484d (diff)
downloadmv-3b1d570f626786d141d99a7923669e82e0c125ca.tar.gz
mv-3b1d570f626786d141d99a7923669e82e0c125ca.tar.bz2
mv-3b1d570f626786d141d99a7923669e82e0c125ca.tar.xz
mv-3b1d570f626786d141d99a7923669e82e0c125ca.zip
Add skill types enum.
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/Makefile.am3
-rw-r--r--src/resources/skilltype.h37
3 files changed, 40 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b5ff1e503..e19a4b96f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -649,6 +649,7 @@ SET(SRCS
resources/sdlmusic.cpp
resources/sdlmusic.h
resources/skillconsts.h
+ resources/skilltype.h
resources/db/sounddb.cpp
resources/db/sounddb.h
resources/db/weaponsdb.cpp
diff --git a/src/Makefile.am b/src/Makefile.am
index 8baa3520a..f849e0163 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -100,7 +100,6 @@ dyecmd_SOURCES = gui/cliprect.cpp \
resources/sdlimagehelper.h \
resources/sdlmusic.cpp \
resources/sdlmusic.h \
- resources/skillconsts.h \
resources/soundeffect.cpp \
resources/soundeffect.h \
resources/subimage.cpp \
@@ -772,6 +771,8 @@ manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \
resources/sdlimagehelper.h \
resources/sdlmusic.cpp \
resources/sdlmusic.h \
+ resources/skillconsts.h \
+ resources/skilltype.h \
resources/db/sounddb.cpp \
resources/db/sounddb.h \
resources/db/weaponsdb.cpp \
diff --git a/src/resources/skilltype.h b/src/resources/skilltype.h
new file mode 100644
index 000000000..79384762f
--- /dev/null
+++ b/src/resources/skilltype.h
@@ -0,0 +1,37 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2011-2014 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef RESOURCES_SKILLTYPE_H
+#define RESOURCES_SKILLTYPE_H
+
+namespace SkillType
+{
+ enum SkillType
+ {
+ Attack = 1,
+ Ground = 2,
+ Self = 4,
+ Unused = 8,
+ Support = 16,
+ TargetTrap = 32
+ };
+} // namespace SkillType
+
+#endif // RESOURCES_SKILLTYPE_H