Deeangbandのフルスクラッチ新ソースコード。BSD系ライセンスを採用予定。
Revisão | b92bd72051ce672b7bd6c4d2f211de6add65cc8e (tree) |
---|---|
Hora | 2014-03-12 23:13:18 |
Autor | Deskull <deskull@user...> |
Commiter | Deskull |
Add members and SetDammyData() to ItemEgo class.
@@ -25,7 +25,7 @@ private: | ||
25 | 25 | Dice baseDamage; //!< ベースダメージのダイス |
26 | 26 | WEIGHT weight; //!< アイテムの重量 |
27 | 27 | SavingTable baseSaving; //!< 基本セービング修正 |
28 | - SavingTable plusSaving; //!< 基本セービング修正 | |
28 | + SavingTable plusSaving; //!< 追加セービング修正 | |
29 | 29 | |
30 | 30 | public: |
31 | 31 |
@@ -21,7 +21,7 @@ private: | ||
21 | 21 | Dice baseDamage; //!< ベースダメージのダイス |
22 | 22 | WEIGHT weight; //!< アイテムの重量 |
23 | 23 | SavingTable baseSaving; //!< 基本セービング修正 |
24 | - SavingTable plusSaving; //!< 基本セービング修正 | |
24 | + SavingTable plusSaving; //!< 追加セービング修正 | |
25 | 25 | |
26 | 26 | public: |
27 | 27 |
@@ -23,3 +23,9 @@ ItemEgo::~ItemEgo(void) | ||
23 | 23 | { |
24 | 24 | return; |
25 | 25 | } |
26 | + | |
27 | +void ItemEgo::SetDammyData(void) | |
28 | +{ | |
29 | + this->name = ""; | |
30 | + this->weight = 0; | |
31 | +} |
@@ -7,7 +7,9 @@ | ||
7 | 7 | */ |
8 | 8 | |
9 | 9 | #include "stdafx.h" |
10 | +#include "Dice.h" | |
10 | 11 | #include "GameElement.h" |
12 | +#include "SavingTable.h" | |
11 | 13 | |
12 | 14 | /*! |
13 | 15 | * @class ItemEgo |
@@ -15,6 +17,11 @@ | ||
15 | 17 | */ |
16 | 18 | class ItemEgo : public GameElement |
17 | 19 | { |
20 | + string name; //!< エゴの銘 | |
21 | + Dice baseDamage; //!< ベースダメージのダイス加算修正 | |
22 | + WEIGHT weight; //!< アイテムの重量加算修正 | |
23 | + SavingTable baseSaving; //!< 基本セービング修正 | |
24 | + SavingTable plusSaving; //!< 追加セービング修正 | |
18 | 25 | |
19 | 26 | private: |
20 | 27 |
@@ -28,8 +35,20 @@ public: | ||
28 | 35 | */ |
29 | 36 | ItemEgo::ItemEgo(ID id, TAG tag, GameWorld *gameWorld); |
30 | 37 | |
38 | + /*! | |
39 | + * @brief ItemEgoクラスコンストラクタ | |
40 | + */ | |
31 | 41 | ItemEgo::ItemEgo(void); |
32 | 42 | |
43 | + /*! | |
44 | + * @brief ItemEgoクラスデストラクタ | |
45 | + */ | |
33 | 46 | ItemEgo::~ItemEgo(void); |
34 | 47 | |
48 | + /*! | |
49 | + * @brief ダミーデータによる初期化 | |
50 | + * @return なし | |
51 | + */ | |
52 | + void ItemEgo::SetDammyData(void); | |
53 | + | |
35 | 54 | }; |