D'angband  0.0.0
Deeangband
 全て クラス 名前空間 ファイル 関数 変数 型定義 列挙型 列挙値 フレンド マクロ定義 ページ
HaveSize.cpp
[詳解]
1 
9 #include "stdafx.h"
10 #include "HaveSize.h"
11 
12 namespace Deeangband
13 {
14  HaveSize::HaveSize(void)
15  {
16  this->WipeData();
17  return;
18  }
19 
20  HaveSize::‾HaveSize(void)
21  {
22  this->WipeData();
23  return;
24  }
25 
26  void HaveSize::WipeData(void)
27  {
28  this->height = 1.00f;
29  this->weight = 1.00f;
30  return;
31  }
32 
33  HEIGHT HaveSize::GetHeight(void)
34  {
35  return this->height;
36  }
37 
38  WEIGHT HaveSize::GetWeight(void)
39  {
40  return this->weight;
41  }
42 
43  BODY_SIZE HaveSize::GetSize(void)
44  {
45  return (BODY_SIZE)(sqrt((double)this->height * (double)this->weight) / 10.0f);
46  }
47 
48 }
double WEIGHT
重量
Definition: Deeangband.h:149
サイズ保持要素のプロトタイプ宣言
標準のシステム インクルード ファイルのインクルード ファイル、または 参照回数が多く、かつあまり変更さ...
double HEIGHT
長さ
Definition: Deeangband.h:148
int BODY_SIZE
体格
Definition: Deeangband.h:156