OSDN Git Service

[Modify] 色々怪しいがビルドは通るところまで。 / Various suspicious but the build passes...
[deeangband/Deeangband-new.git] / Deeangband / Skill.cpp
1 /*!
2 * @file Skill.cpp
3 * @brief \83Q\81[\83\80\92\86\82Ì\83X\83L\83\8b\82ð\92è\8b`\82·\82é
4 * @date 2013/12/17
5 * @author Deskull
6 * 2013 Sikabane Works.
7 */
8
9 #include "stdafx.h"
10 #include "Skill.h"
11
12 namespace Deeangband
13 {
14
15         Skill::Skill(void)
16         {
17                 this->WipeData();
18         }
19
20         Skill::~Skill(void)
21         {
22                 this->WipeData();
23         }
24
25         void Skill::WipeData(void)
26         {
27                 GameElement::WipeData();
28         }
29
30         std::string Skill::GetName(void)
31         {
32                 return this->name;
33         }
34
35         std::string Skill::GetDetails(void)
36         {
37                 return this->details;
38         }
39
40         SKILL_RANK Skill::CalcSkillRank(Creature *creaturePtr, TAG tag)
41         {
42                 if(creaturePtr)
43                 {
44                         return (SKILL_RANK)sqrt(creaturePtr->GetSkillExp(tag) / 100); //!< \8cv\8eZ\82Í\8cã\81X\8c\9f\93¢\82µ\92¼\82·\81B
45                 }
46                 else return 0;
47         }
48
49 }