D'angband  0.0.0
Deeangband
 全て クラス 名前空間 ファイル 関数 変数 型定義 列挙型 列挙値 フレンド マクロ定義 ページ
Species.cpp
[詳解]
1 
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  {
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 
69  {
70  return this->baseFirstRace;
71  }
72 
74  {
75  return this->baseSecondRace;
76  }
77 
78 }
TAG baseCamp
基本所属陣営
Definition: Species.h:34
TAG baseSecondRace
基本種族タグ2
Definition: Species.h:45
void GameElement::WipeData(void)
ダミーデータによる初期化
std::string TAG
ゲーム要素文字列ID
Definition: Deeangband.h:144
TAG GetFirstRaceTag(void)
第一種族のタグを返す
Definition: Species.cpp:68
TAG baseFirstRace
基本種族タグ1
Definition: Species.h:44
BaseStatusTable baseStatus
基本ステータス
Definition: Species.h:36
int SKILL_EXP
スキル経験値
Definition: Deeangband.h:160
int64_t SOUL
ソウルの変数型
Definition: Deeangband.h:138
標準のシステム インクルード ファイルのインクルード ファイル、または 参照回数が多く、かつあまり変更さ...
#define TAG_VARIABLE
要素可変タグ
Definition: Deeangband.h:18
int FEED
滋養度の変数型
Definition: Deeangband.h:137
ゲーム中のクリーチャー種別のプロトタイプ
SOUL baseSoul
基本ソウル量
Definition: Species.h:29
FEED baseFeed
基本滋養値
Definition: Species.h:31
LEVEL divineLevel
基本神性レベル
Definition: Species.h:32
std::vector< TAG > GetAuthorityTags(void)
所持権能の一覧を返す
Definition: Species.cpp:63
TAG GetSecondtRaceTag(void)
第二種族のタグを返す
Definition: Species.cpp:73
std::vector< TAG > authorityTags
権能タグ配列
Definition: Species.h:47
std::map< TAG, SKILL_EXP > skillExpList
スキル経験値リスト
Definition: Species.h:38