summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-04 20:29:34 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-04 20:29:34 +0300
commit6d608084b6e40d326d665b83a1280849691aa0d8 (patch)
tree0ffaebf3b60bf5754481c3db95efc5f8f3a5aa0b /src
parentc14af75fab3ddb45886a358e5056c2b0baee91e1 (diff)
downloadplus-6d608084b6e40d326d665b83a1280849691aa0d8.tar.gz
plus-6d608084b6e40d326d665b83a1280849691aa0d8.tar.bz2
plus-6d608084b6e40d326d665b83a1280849691aa0d8.tar.xz
plus-6d608084b6e40d326d665b83a1280849691aa0d8.zip
Add missing files.
Diffstat (limited to 'src')
-rw-r--r--src/resources/skilltypeentry.h34
-rw-r--r--src/resources/skilltypelist.h48
2 files changed, 82 insertions, 0 deletions
diff --git a/src/resources/skilltypeentry.h b/src/resources/skilltypeentry.h
new file mode 100644
index 000000000..bbf0bd016
--- /dev/null
+++ b/src/resources/skilltypeentry.h
@@ -0,0 +1,34 @@
+/*
+ * 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_SKILLTYPEENTRY_H
+#define RESOURCES_SKILLTYPEENTRY_H
+
+#include "enums/resources/skilltype.h"
+
+#include "localconsts.h"
+
+struct SkillTypeEntry final
+{
+ const SkillType::SkillType type;
+ const char *const name;
+};
+
+#endif // RESOURCES_SKILLTYPEENTRY_H
diff --git a/src/resources/skilltypelist.h b/src/resources/skilltypelist.h
new file mode 100644
index 000000000..d342b2a6e
--- /dev/null
+++ b/src/resources/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/skilltypeentry.h"
+
+#include "localconsts.h"
+
+const size_t skillTypeListSize = 6;
+
+SkillTypeEntry skillTypeList[skillTypeListSize] =
+{
+ // TRANSLATORS: Skill type
+ { SkillType::Attack, _("Attack") },
+ // TRANSLATORS: Skill type
+ { SkillType::Ground, _("Ground") },
+ // TRANSLATORS: Skill type
+ { SkillType::Self, _("Self") },
+ // TRANSLATORS: Skill type
+ { SkillType::Unused, _("Unused") },
+ // TRANSLATORS: Skill type
+ { SkillType::Support, _("Support") },
+ // TRANSLATORS: Skill type
+ { SkillType::TargetTrap, _("TargetTrap") }
+};
+
+#endif // RESOURCES_SKILLTYPELIST_H