summaryrefslogtreecommitdiff
path: root/src/resources/skill
diff options
context:
space:
mode:
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