D'angband  0.0.0
Deeangband
 全て クラス 名前空間 ファイル 関数 変数 型定義 列挙型 列挙値 フレンド マクロ定義 ページ
ItemBase.h
[詳解]
1 
9 #pragma once
10 
11 #include "stdafx.h"
12 #include "Dice.h"
13 #include "ItemTemplate.h"
14 #include "GameElement.h"
15 #include "SavingTable.h"
16 #include "HaveSymbol.h"
17 
18 BOOST_CLASS_VERSION(ItemBase, 1);
19 
20 namespace Deeangband
21 {
22 
38  class ItemBase : public ItemTemplate
39  {
40  private:
45 
47  template<class Archive> void serialize(Archive &archive, const unsigned int)
48  {
49  archive & boost::serialization::make_nvp("Name", name);
50  archive & boost::serialization::make_nvp("BaseDamage", baseDamage);
51  archive & boost::serialization::make_nvp("Weight", weight);
52  archive & boost::serialization::make_nvp("BaseSaving", baseSaving);
53  archive & boost::serialization::make_nvp("PlusSaving", plusSaving);
54  }
55 
56  public:
57 
61  ItemBase::ItemBase(void);
62 
66  ItemBase::‾ItemBase(void);
67 
72  WEIGHT ItemBase::GetWeight(void);
73 
78  Dice ItemBase::GetDamageDice(void);
79 
84  void ItemBase::WipeData(void);
85 
90  void ItemBase::XMLSave(std::string filename);
91 
92  };
93 
94 }
double WEIGHT
重量
Definition: Deeangband.h:149
アイテムベースのクラス
Definition: ItemBase.h:38
アイテムのステータステンプレート
WEIGHT weight
アイテムの重量
Definition: ItemBase.h:42
void serialize(Archive &archive, const unsigned int)
Definition: ItemBase.h:47
Diceクラスとその他付随要素の定義
シンボル保持抽象クラスのプロトタイプ宣言
アイテムのクラス
Definition: ItemTemplate.h:29
friend class boost::serialization::access
Definition: ItemBase.h:46
標準のシステム インクルード ファイルのインクルード ファイル、または 参照回数が多く、かつあまり変更さ...
ゲーム中のダイス処理
Definition: Dice.h:25
セービングテーブルクラス
Definition: SavingTable.h:21
GameElementクラスと付随要素のプロトタイプ
ゲーム中のセービングテーブルのプロトタイプ
BOOST_CLASS_VERSION(ItemBase, 1)
SavingTable plusSaving
追加セービング修正
Definition: ItemBase.h:44
SavingTable baseSaving
基本セービング修正
Definition: ItemBase.h:43
Dice baseDamage
ベースダメージのダイス
Definition: ItemBase.h:41