return this->outerWallFeature;
}
+ TAG Dungeon::GetFloorFeatureTag(void)
+ {
+ return this->floorFeature;
+ }
+
}
\ No newline at end of file
Feature *Dungeon::GetInnerWallFeaturePtr(void);
/*!
+ * @brief \83_\83\93\83W\83\87\83\93\82Ì\8aî\96{\8f°\92n\8c`\82ð\95Ô\82·
+ * @return \83_\83\93\83W\83\87\83\93\82Ì\8aî\96{\8f°\92n\8c`\8eQ\8fÆ\83^\83O
+ */
+ TAG Dungeon::GetFloorFeatureTag(void);
+
+ /*!
* @brief \83_\83\93\83W\83\87\83\93\82ð\8f\8a\97L\82·\82é\90w\89c\82ð\95Ô\82·
* @return \83_\83\93\83W\83\87\83\93\82Ì\8f\8a\97L\90w\89cID
*/
for(x = 0; x < width; x++)
{
squares[y].push_back(boost::shared_ptr<Square>(new Square()));
- squares[y][x]->SetFeatureTag("VANILLA_PERMANET_WALL");
}
}
for(x = 0; x < width; x++)
{
squares[y].push_back(boost::shared_ptr<Square>(new Square()));
- squares[y][x]->SetFeatureTag("VANILLA_PERMANET_WALL");
+ if(Dice::Cast(1, 2) == 2) squares[y][x]->SetFeatureTag(dungeonPtr->GetInnerWallFeatureTag());
+ else squares[y][x]->SetFeatureTag(dungeonPtr->GetFloorFeatureTag());
}
}
{
Dice::Initialize();
XMLLoad();
- floorList.emplace(0, boost::make_shared<Floor>(0, SPECIAL_TAG_UNKNOWN, this));
+ floorList.emplace(0, boost::make_shared<Floor>(0, SPECIAL_TAG_UNKNOWN, this, &(*dungeonList["VANILLA_WOMB"]), 1));
creatureList.emplace(0, boost::make_shared<Creature>(0, SPECIAL_TAG_UNKNOWN, this));
playerPtr = &(*creatureList[0]);
<count>3</count>
<item_version>0</item_version>
<item class_id="1" tracking_level="0" version="0">
- <first>VANILLA_PERMANET_FLOOR</first>
+ <first>VANILLA_PERMANENT_FLOOR</first>
<second class_id="2" tracking_level="0" version="1">
<px class_id="3" tracking_level="1" version="10" object_id="_0">
<name>\89i\8bv\8f°</name>
</second>
</item>
<item>
- <first>VANILLA_PERMANET_WALL</first>
+ <first>VANILLA_PERMANENT_WALL</first>
<second>
<px class_id_reference="3" object_id="_1">
<name>\89i\8bv\95Ç</name>