OSDN Git Service

Change argument of a constructor of Creature class.
authorDeskull <desull@users.sourceforge.jp>
Fri, 6 Jun 2014 10:37:24 +0000 (19:37 +0900)
committerDeskull <desull@users.sourceforge.jp>
Fri, 6 Jun 2014 10:37:24 +0000 (19:37 +0900)
Deeangband/Creature.cpp
Deeangband/Creature.h

index abbc4d7..f55097c 100644 (file)
@@ -77,10 +77,10 @@ namespace Deeangband
                11100000000, // Lv60\93\9e\92B\83\\83E\83\8b
        };
 
-       Creature::Creature(Species *speciesPtr, ID id, TAG tag, GameWorld *gameWorld) : GameInstance()
+       Creature::Creature(std::map<TAG, std::shared_ptr<Species>>::iterator speciesIt, ID id, TAG tag, GameWorld *gameWorld) : GameInstance()
        {
                WipeData();
-               SetSpeciesData(speciesPtr);
+               SetSpeciesData(&(*speciesIt->second));
        }
 
        Creature::Creature(ID id, TAG tag, GameWorld *gameWorld) : GameInstance()
index 4a1eb5c..ca75dfd 100644 (file)
@@ -213,14 +213,8 @@ namespace Deeangband
                * @param tag GameElement\82Ì\83^\83O
                * @param gameWorld \8f\8a\91®\8c³gameWorld\8eQ\8fÆ\83|\83C\83\93\83^
                */
-               Creature::Creature(Species *speciesPtr, ID id, TAG tag, GameWorld *gameWorld);
+               Creature::Creature(std::map<TAG, std::shared_ptr<Species>>::iterator speciesIt, ID id, TAG tag, GameWorld *gameWorld);
 
-               /*! 
-               * @brief Creature\83N\83\89\83X\83R\83\93\83X\83g\83\89\83N\83^(GameElement\83\81\83\93\83o\91Î\89\9e)
-               * @param id GameElement\82ÌID
-               * @param tag GameElement\82Ì\83^\83O
-               * @param gameWorld \8f\8a\91®\8c³gameWorld\8eQ\8fÆ\83|\83C\83\93\83^
-               */
                Creature::Creature(ID id, TAG tag, GameWorld *gameWorld);
 
                /*!