OSDN Git Service

インクルードファイル指定と未使用変数警告の修正。 / Fix loading include files and unused value warnings,
[deeangband/Deeangband-new.git] / Deeangband / Species.cpp
1 /*!
2 * @file Species.cpp
3 * @brief \83Q\81[\83\80\92\86\82Ì\83N\83\8a\81[\83`\83\83\81[\8eí\95Ê\82ð\92è\8b`\82·\82é
4 * @date 2014/02/01
5 * @author Deskull
6 * 2014 Sikabane Works.
7 */
8
9 #include "stdafx.h"
10 #include "Species.h"
11
12 namespace Deeangband
13 {
14         Species::Species(void) : GameElement(), HaveSymbol(), HaveSize()
15         {
16                 this->WipeData();
17         }
18
19         Species::~Species(void)
20         {
21                 this->WipeData();
22         }
23
24         void Species::WipeData(void)
25         {
26                 GameElement::WipeData();
27
28                 this->baseSoul = 100;
29                 this->baseFeed = 20000;
30
31                 this->height = 160.0f;
32                 this->weight = 50.0f;
33                 this->divineLevel = -1;
34
35                 this->baseStatus.Set(8, 8, 8, 8, 8, 8);
36
37                 this->skillExpList.clear();
38                 this->baseCamp = TAG_VARIABLE;
39                 return;
40         }
41
42         SOUL Species::GetBaseSoul(void)
43         {
44                 return this->baseSoul;
45         }
46
47         FEED Species::GetBaseFeed(void)
48         {
49                 return this->baseFeed;
50         }
51
52         SKILL_EXP Species::GetSkillExp(TAG tag)
53         {
54                 if(this->skillExpList.count(tag)) return this->skillExpList[tag];
55                 else return 0;
56         }
57
58         TAG Species::GetBaseCampTAG(void)
59         {
60                 return this->baseCamp;
61         }
62
63         std::vector<TAG> Species::GetAuthorityTags(void)
64         {
65                 return this->authorityTags;
66         }
67
68         TAG Species::GetFirstRaceTag(void)
69         {
70                 return this->baseFirstRace;
71         }
72
73         TAG Species::GetSecondtRaceTag(void)
74         {
75                 return this->baseSecondRace;
76         }
77
78 }