OSDN Git Service

[Modify] 色々怪しいがビルドは通るところまで。 / Various suspicious but the build passes... delete-boost master
authordeskull <deskull@users.sourceforge.jp>
Sun, 15 Mar 2020 03:26:58 +0000 (12:26 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sun, 15 Mar 2020 03:26:58 +0000 (12:26 +0900)
Deeangband/Dungeon.cpp
Deeangband/GameWorld.cpp

index e8f2f6e..e8dea20 100644 (file)
@@ -27,7 +27,7 @@ namespace Deeangband
        void Dungeon::WipeData(void)
        {
                this->baseSize.Set(80, 80);
-               this->name = "";
+               this->name = "VANILLA_WOMB";
                this->minDepth = 1;
                this->maxDepth = 50;
                this->outerWallFloor = SPECIAL_TAG_UNKNOWN;
index 0fa0e50..4c30124 100644 (file)
@@ -59,22 +59,34 @@ namespace Deeangband
                this->fieldID = 0;
                this->gameTime = 0;
 
+               std::shared_ptr<Dungeon> dungeon_ = std::make_shared<Dungeon>();
+
+               dungeonList["VANILLA_WOMB"] = dungeon_;
+
+               speciesList["VANILLA_STIGMATIC"] = std::make_shared<Species>();
+               speciesList["VANILLA_RAVING_LUNATIC"] = std::make_shared<Species>();
        }
 
        void GameWorld::Initialize(void)
        {
+               //\8f\89\8aú\89»
+
+
                int i;
                std::map<ID, std::shared_ptr<Field>>::iterator fieldIt;
                std::map<TAG, std::shared_ptr<Species>>::iterator speciesIt;
                fieldList.emplace(0, std::make_shared<Field>(dungeonList.find("VANILLA_WOMB"), 1));
                fieldIt = fieldList.find(0);
 
+               Species *vanilla_stigmatic = new Species();
+
                speciesIt = speciesList.find("VANILLA_STIGMATIC");
                GameWorld::GenerateCreature(speciesIt, fieldIt, 10, 10);
 
                speciesIt = speciesList.find("VANILLA_RAVING_LUNATIC");
                GameWorld::GenerateCreature(speciesIt, fieldIt, 5, 5);
 
+
                for(i = 0; i < MAX_KARMAS; i++)
                {
                        karmaList.emplace("VANILLA_", std::make_shared<Karma>());
@@ -728,4 +740,4 @@ namespace Deeangband
        }
 
 
-}
\ No newline at end of file
+}