OSDN Git Service

[BUGGY]
authorDeskull <deskull@users.sourceforge.jp>
Mon, 19 May 2014 14:31:27 +0000 (23:31 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Mon, 19 May 2014 14:31:27 +0000 (23:31 +0900)
Add creation numbers and dead numbers to Spcies class.
Fix function call error.

Deeangband/Dungeon.cpp
Deeangband/Floor.cpp
Deeangband/Species.h
lib-Vanilla/Specie.xml

index ded4cb6..d889e0e 100644 (file)
@@ -59,7 +59,7 @@ namespace Deeangband
 
        Coordinates Dungeon::GetBaseSize(void)
        {
-               return this->GetBaseSize();
+               return this->baseSize;
        }
 
 }
\ No newline at end of file
index e884776..319dfea 100644 (file)
@@ -50,7 +50,10 @@ namespace Deeangband
                        }
                }
 
+               creatures.resize(0);
                doors.resize(0);
+               traps.resize(0);
+               items.resize(0);
        }
 
        Floor::Floor()
index 41ac76a..7e8aee4 100644 (file)
@@ -39,6 +39,10 @@ namespace Deeangband
 
                std::map<TAG, SKILL_EXP> skillExpList; //!< \83X\83L\83\8b\8co\8c±\92l\83\8a\83X\83g
 
+               NUMBER currentCreationNumber; //!< \8c»\8dÝ\90\90¬\90\94
+               NUMBER currentDeadNumber; //!< \8c»\8dÝ\8e\80\96S\90\94
+               NUMBER maxCreationNumber; //!< \8dÅ\91å\90\90¬\90\94
+
                friend class boost::serialization::access;
                template<class Archive> void serialize(Archive &archive, const unsigned int) 
                {
index 155f0c9..96251cb 100644 (file)
@@ -30,3 +30,8 @@
                </second>
        </item>
 </Species>
+
+                       </px>
+               </second>
+       </item>
+</Species>