From 191938e51d9e9a65b302bf541d706615a22b31a0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Jul 2016 16:11:04 +0300 Subject: Move skilltypelist into skill directory. --- src/resources/skill/skillinfo.cpp | 3 +-- src/resources/skill/skilltypelist.h | 48 +++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 src/resources/skill/skilltypelist.h (limited to 'src/resources/skill') 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 . + */ + +#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 -- cgit v1.2.3-60-g2f50