summaryrefslogtreecommitdiff
path: root/src/resources/skill
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-18 16:11:04 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-18 16:11:04 +0300
commit191938e51d9e9a65b302bf541d706615a22b31a0 (patch)
tree935f3a725cba8643a2e19fa3721d0c6ba19e991e /src/resources/skill
parentff78d9fe36ec63d1b5120fb06cda1631332b7060 (diff)
downloadplus-191938e51d9e9a65b302bf541d706615a22b31a0.tar.gz
plus-191938e51d9e9a65b302bf541d706615a22b31a0.tar.bz2
plus-191938e51d9e9a65b302bf541d706615a22b31a0.tar.xz
plus-191938e51d9e9a65b302bf541d706615a22b31a0.zip
Move skilltypelist into skill directory.
Diffstat (limited to 'src/resources/skill')
-rw-r--r--src/resources/skill/skillinfo.cpp3
-rw-r--r--src/resources/skill/skilltypelist.h48
2 files changed, 49 insertions, 2 deletions
diff --git a/src/resources/skill/skillinfo.cpp b/src/resources/skill/skillinfo.cpp
index c65fadc2b..1500bf17a 100644
--- a/src/resources/skill/skillinfo.cpp
+++ b/src/resources/skill/skillinfo.cpp
@@ -28,9 +28,8 @@
#include "utils/stringutils.h"
-#include "resources/skilltypelist.h"
-
#include "resources/skill/skilldata.h"
+#include "resources/skill/skilltypelist.h"
#include "debug.h"
diff --git a/src/resources/skill/skilltypelist.h b/src/resources/skill/skilltypelist.h
new file mode 100644
index 000000000..1c5c93704
--- /dev/null
+++ b/src/resources/skill/skilltypelist.h
@@ -0,0 +1,48 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2016 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_SKILLTYPELIST_H
+#define RESOURCES_SKILLTYPELIST_H
+
+#include "utils/gettext.h"
+
+#include "resources/skill/skilltypeentry.h"
+
+#include "localconsts.h"
+
+const size_t skillTypeListSize = 6;
+
+SkillTypeEntry skillTypeList[skillTypeListSize] =
+{
+ // TRANSLATORS: Skill type
+ { SkillType::Attack, N_("Attack") },
+ // TRANSLATORS: Skill type
+ { SkillType::Ground, N_("Ground") },
+ // TRANSLATORS: Skill type
+ { SkillType::Self, N_("Self") },
+ // TRANSLATORS: Skill type
+ { SkillType::Unused, N_("Unused") },
+ // TRANSLATORS: Skill type
+ { SkillType::Support, N_("Support") },
+ // TRANSLATORS: Skill type
+ { SkillType::TargetTrap, N_("TargetTrap") }
+};
+
+#endif // RESOURCES_SKILLTYPELIST_H