D'angband  0.0.0
Deeangband
 全て クラス 名前空間 ファイル 関数 変数 型定義 列挙型 列挙値 フレンド マクロ定義 ページ
GameElement.h
[詳解]
1 
9 #pragma once
10 
11 #include "Deeangband.h"
12 
13 namespace Deeangband
14 {
15  class GameWorld;
16 
22  {
23  private:
24 
26 
33  template<class Archive> void serialize(Archive &archive, const unsigned int version)
34  {
35  if(version >= 0)
36  {
37  archive & boost::serialization::make_nvp("Name", name);
38  archive & boost::serialization::make_nvp("Description", description);
39  archive & boost::serialization::make_nvp("ValidGenerated", validGenerated);
40  }
41  }
42 
43  protected:
44 
48 
49  public:
50 
54  static std::string GameElement::HeightFormat(HEIGHT height);
55 
59  static std::string GameElement::WeightFormat(WEIGHT weight);
60 
61 
66 
70  virtual GameElement::‾GameElement(void);
71 
76  void GameElement::WipeData(void);
77 
83 
89 
95 
101 
102  };
103 
104 }
105 
double WEIGHT
重量
Definition: Deeangband.h:149
void serialize(Archive &archive, const unsigned int version)
クラスのシリアライズを設定する
Definition: GameElement.h:33
void GameElement::WipeData(void)
ダミーデータによる初期化
static std::string GameElement::WeightFormat(WEIGHT weight)
重量を単位つきでstringに変換する。
std::string NAME
名称
Definition: Deeangband.h:145
ゲーム世界のクラス
Definition: GameWorld.h:51
std::string DESCRIPTION
解説
Definition: Deeangband.h:146
friend class boost::serialization::access
Definition: GameElement.h:25
double HEIGHT
長さ
Definition: Deeangband.h:148
BOOST_CLASS_VERSION(Deeangband::GameElement, 10)
GameWorld * GameElement::GetGameWorld(void)
所属元のGameWorldインスタンスを返す
static std::string GameElement::HeightFormat(HEIGHT height)
長さを単位つきでstringに変換する。
bool validGenerated
正しく生成されたかの判定フラグ
Definition: GameElement.h:47
ゲームの諸要素の管理を行うスーパークラス
Definition: GameElement.h:21
DESCRIPTION GameElement::GetDescription(void)
解説を取得する
NAME GameElement::GetName(void)
名前を取得する
DESCRIPTION description
解説
Definition: GameElement.h:46
bool GameElement::IsValidGenerated(void)
所属元のGameWorldインスタンスを返す
GameElement::GameElement(void)
GameElementクラスコンストラクタ
virtual GameElement::‾GameElement(void)
GameElementクラスデストラクタ