• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Deeangbandのフルスクラッチ新ソースコード。BSD系ライセンスを採用予定。


Commit MetaInfo

Révisione14cdb508847356d02d42001fc38d8fbefb7a7f8 (tree)
l'heure2014-03-12 22:56:21
AuteurDeskull <deskull@user...>
CommiterDeskull

Message de Log

Add Item::SetDammyData().

Change Summary

Modification

--- a/Deeangband/GameSurface.h
+++ b/Deeangband/GameSurface.h
@@ -50,7 +50,7 @@ public:
5050 */
5151 virtual void ViewCreatureStatus(Creature *creaturePtr)
5252 {
53- return;
53+ creaturePtr;
5454 }
5555
5656 virtual void GameSurface::SetFloor(Floor *floorPtr)
--- a/Deeangband/Item.cpp
+++ b/Deeangband/Item.cpp
@@ -15,15 +15,21 @@ Item::Item(ID id, TAG tag, GameWorld *gameWorld) : GameElement(id, tag, gameWorl
1515
1616 Item::Item(void)
1717 {
18- return;
1918 }
2019
2120 Item::~Item(void)
2221 {
23- return;
22+}
23+
24+void Item::SetDammyData(void)
25+{
2426 }
2527
2628 bool Item::TakeEffect(Effect *effectPtr, POWER amount)
2729 {
28- return false;
30+ if(effectPtr)
31+ {
32+ amount = 0;
33+ }
34+ return true;
2935 }
--- a/Deeangband/Item.h
+++ b/Deeangband/Item.h
@@ -47,6 +47,12 @@ public:
4747 */
4848 Item::~Item(void);
4949
50+ /*!
51+ * @brief ダミーデータによる初期化
52+ * @return なし
53+ */
54+ void Item::SetDammyData(void);
55+
5056 /*! 受けた効果を処理する */
5157 bool Item::TakeEffect(Effect *effectPtr, POWER amount);
5258