{
private:
- friend class boost::serialization::access;
-
- /*!
- * @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
- * @param archive \83A\81[\83J\83C\83u\89»\82·\82é\83N\83\89\83X\82Ì\83A\83h\83\8c\83X
- * @param version \83t\83@\83C\83\8b\83o\81[\83W\83\87\83\93
- * @return XMLSerialize\83e\83\93\83v\83\8c\81[\83g
- */
- template<class Archive> void serialize(Archive &archive, const unsigned int version)
- {
- if(version > 0)
- {
- archive & boost::serialization::make_nvp("Name", name);
- archive & boost::serialization::make_nvp("Description", description);
- }
- }
-
public:
/*!
}
-BOOST_CLASS_VERSION(Deeangband::Ability, 10);
{
private:
- friend class boost::serialization::access;
Dice effectDice; //!< \8bó\8aÔ\8f\8a\8dÝ\92\86\82Ì\83G\83t\83F\83N\83g\92l
- /*!
- * @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
- * @param archive \83A\81[\83J\83C\83u\89»\82·\82é\83N\83\89\83X\82Ì\83A\83h\83\8c\83X
- * @param version \83t\83@\83C\83\8b\83o\81[\83W\83\87\83\93
- * @return XMLSerialize\83e\83\93\83v\83\8c\81[\83g
- */
- template<class Archive> void serialize(Archive &archive, const unsigned int version)
- {
- if(version >= 0)
- {
- archive & boost::serialization::make_nvp("Name", name);
- archive & boost::serialization::make_nvp("TileID", tileID);
- archive & boost::serialization::make_nvp("Symbol", symbol);
- archive & boost::serialization::make_nvp("SymbolColor", symbolColor);
- archive & boost::serialization::make_nvp("BackColor", backColor);
- if(version >= 11) archive & boost::serialization::make_nvp("EffectDice", effectDice);
- }
- }
-
public:
/*!
}
-BOOST_CLASS_VERSION(Deeangband::Air, 11);
{
private:
- friend class boost::serialization::access;
-
- /*!
- * @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
- * @param archive \83A\81[\83J\83C\83u\89»\82·\82é\83N\83\89\83X\82Ì\83A\83h\83\8c\83X
- * @param version \83t\83@\83C\83\8b\83o\81[\83W\83\87\83\93
- * @return XMLSerialize\83e\83\93\83v\83\8c\81[\83g
- */
- template<class Archive> void serialize(Archive &archive, const unsigned int version)
- {
- if(version >= 0)
- {
- archive & boost::serialization::make_nvp("Name", name);
- }
- }
-
public:
/*!
};
}
-BOOST_CLASS_VERSION(Deeangband::Authority, 10);
BASE_STATUS status[CS_MAX]; /*!<\83X\83e\81[\83^\83X*/
- friend class boost::serialization::access;
-
- /*!
- * @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
- * @param archive \83A\81[\83J\83C\83u\89»\82·\82é\83N\83\89\83X\82Ì\83A\83h\83\8c\83X
- * @param version \83f\81[\83^\83o\81[\83W\83\87\83\93
- * @return XMLSerialize\83e\83\93\83v\83\8c\81[\83g
- */
- template<class Archive> void serialize(Archive &archive, const unsigned int version)
- {
- if(version > 0)
- {
- archive & boost::serialization::make_nvp("STR", status[0]);
- archive & boost::serialization::make_nvp("INT", status[1]);
- archive & boost::serialization::make_nvp("WIS", status[2]);
- archive & boost::serialization::make_nvp("DEX", status[3]);
- archive & boost::serialization::make_nvp("CON", status[4]);
- archive & boost::serialization::make_nvp("CHA", status[5]);
- }
- }
-
public:
/*!
}
-BOOST_CLASS_VERSION(Deeangband::BaseStatusTable, 10);
{
private:
- friend class boost::serialization::access;
-
- /*!
- * @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
- * @param archive \83A\81[\83J\83C\83u\89»\82·\82é\83N\83\89\83X\82Ì\83A\83h\83\8c\83X
- * @param version \83t\83@\83C\83\8b\83o\81[\83W\83\87\83\93
- * @return XMLSerialize\83e\83\93\83v\83\8c\81[\83g
- */
- template<class Archive> void serialize(Archive &archive, const unsigned int version)
- {
- if(version >= 0)
- {
- archive & boost::serialization::make_nvp("Name", name);
- }
- }
-
public:
/*!
}
-BOOST_CLASS_VERSION(Deeangband::Building, 10);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::Camp, 10);
int b; //!<\90Â
int a; //!<\83A\83\8b\83t\83@\83`\83\83\83\93\83l\83\8b
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
};
}
-BOOST_CLASS_VERSION(Deeangband::Color, 10);
{\r
private:\r
\r
- friend class boost::serialization::access;\r
\r
/*!\r
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é\r
\r
}\r
\r
-BOOST_CLASS_VERSION(Deeangband::Combat, 10);\r
MAP_POSITION fx; //!< X\8dÀ\95W
MAP_POSITION fy; //!< Y\8dÀ\95W
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::Coordinates, 10);
11100000000, // Lv60\93\9e\92B\83\\83E\83\8b
};
- Creature::Creature(std::map<TAG, boost::shared_ptr<Species>>::iterator speciesIt)
+ Creature::Creature(std::map<TAG, std::shared_ptr<Species>>::iterator speciesIt)
: GameInstance(), HaveSymbol(), HaveHp(), HaveGameTime(), HavePosition(), HaveInventory(), HaveSize()
{
WipeData();
SetSpeciesData(&(*speciesIt->second));
}
- Creature::Creature(std::map<TAG, boost::shared_ptr<Species>>::iterator& speciesIt, std::map<ID, boost::shared_ptr<Field>>::iterator& fieldIt, MAP_LENGTH x, MAP_LENGTH y)
+ Creature::Creature(std::map<TAG, std::shared_ptr<Species>>::iterator& speciesIt, std::map<ID, std::shared_ptr<Field>>::iterator& fieldIt, MAP_LENGTH x, MAP_LENGTH y)
: GameInstance(), HaveSymbol(), HaveHp(), HaveGameTime(), HavePosition(fieldIt, x, y), HaveInventory(), HaveSize()
{
WipeData();
return true;
}
- bool Creature::PickUpItem(std::map<ID, boost::shared_ptr<Item>>::iterator itemIt)
+ bool Creature::PickUpItem(std::map<ID, std::shared_ptr<Item>>::iterator itemIt)
{
return true;
}
- bool Creature::DropItem(std::map<ID, boost::shared_ptr<Item>>::iterator itemIt)
+ bool Creature::DropItem(std::map<ID, std::shared_ptr<Item>>::iterator itemIt)
{
return true;
}
- bool Creature::EatItem(std::map<ID, boost::shared_ptr<Item>>::iterator itemIt)
+ bool Creature::EatItem(std::map<ID, std::shared_ptr<Item>>::iterator itemIt)
{
return true;
}
- bool Creature::QuaffItem(std::map<ID, boost::shared_ptr<Item>>::iterator itemIt)
+ bool Creature::QuaffItem(std::map<ID, std::shared_ptr<Item>>::iterator itemIt)
{
return true;
}
- bool Creature::ActivateItem(std::map<ID, boost::shared_ptr<Item>>::iterator itemIt)
+ bool Creature::ActivateItem(std::map<ID, std::shared_ptr<Item>>::iterator itemIt)
{
return true;
}
- bool Creature::ThrowItem(std::map<ID, boost::shared_ptr<Item>>::iterator itemIt)
+ bool Creature::ThrowItem(std::map<ID, std::shared_ptr<Item>>::iterator itemIt)
{
return true;
}
- bool Creature::ReadItem(std::map<ID, boost::shared_ptr<Item>>::iterator itemIt)
+ bool Creature::ReadItem(std::map<ID, std::shared_ptr<Item>>::iterator itemIt)
{
return true;
}
*/
void Creature::calcHPTable(void);
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
* @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 speciesIt \90¶\90¬\8c³\82Æ\82È\82é\83N\83\8a\81[\83`\83\83\81[\8eí\95Ê\83C\83e\83\8c\81[\83^
*/
- Creature::Creature(std::map<TAG, boost::shared_ptr<Species>>::iterator speciesIt);
+ Creature::Creature(std::map<TAG, std::shared_ptr<Species>>::iterator speciesIt);
/*!
* @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 x \90¶\90¬\90æX\8dÀ\95W
* @param y \90¶\90¬\90æY\8dÀ\95W
*/
- Creature::Creature(std::map<TAG, boost::shared_ptr<Species>>::iterator& speciesIt, std::map<ID, boost::shared_ptr<Field>>::iterator& fieldIt, MAP_LENGTH x, MAP_LENGTH y);
+ Creature::Creature(std::map<TAG, std::shared_ptr<Species>>::iterator& speciesIt, std::map<ID, std::shared_ptr<Field>>::iterator& fieldIt, MAP_LENGTH x, MAP_LENGTH y);
/*!
* @brief Creature\83N\83\89\83X\83R\83\93\83X\83g\83\89\83N\83^
* @return \8eÀ\8dÛ\82É\83A\83C\83e\83\80\82ð\8fE\82¤\82±\82Æ\82ª\82Å\82«\82½\82çtrue\82ð\95Ô\82·
* @todo Creature::PickUpItem()\8e\9e\82É\94\90¶\82·\82é\89e\8b¿\82Ì\8eÀ\91\95
*/
- bool Creature::PickUpItem(std::map<ID, boost::shared_ptr<Item>>::iterator itemIt);
+ bool Creature::PickUpItem(std::map<ID, std::shared_ptr<Item>>::iterator itemIt);
/*!
* @brief \83N\83\8a\81[\83`\83\83\81[\82ª\83A\83C\83e\83\80\82ð\97\8e\82Æ\82·\8f\88\97\9d
* @return \8eÀ\8dÛ\82É\83A\83C\83e\83\80\82ð\97\8e\82Æ\82·\82±\82Æ\82ª\82Å\82«\82½\82çtrue\82ð\95Ô\82·
* @todo Creature::DropItem()\8e\9e\82É\94\90¶\82·\82é\89e\8b¿\82Ì\8eÀ\91\95
*/
- bool Creature::DropItem(std::map<ID, boost::shared_ptr<Item>>::iterator itemIt);
+ bool Creature::DropItem(std::map<ID, std::shared_ptr<Item>>::iterator itemIt);
/*!
* @brief \83N\83\8a\81[\83`\83\83\81[\82ª\83A\83C\83e\83\80\82ð\90H\82×\82é\8f\88\97\9d
* @return \8eÀ\8dÛ\82É\83A\83C\83e\83\80\82ð\90H\82×\82é\8f\88\97\9d\82ð\8e\8e\82Ý\82½\82çtrue\82ð\95Ô\82·
* @todo Creature::EatItem()\8e\9e\82É\94\90¶\82·\82é\89e\8b¿\82Ì\8eÀ\91\95
*/
- bool Creature::EatItem(std::map<ID, boost::shared_ptr<Item>>::iterator itemIt);
+ bool Creature::EatItem(std::map<ID, std::shared_ptr<Item>>::iterator itemIt);
/*!
* @brief \83N\83\8a\81[\83`\83\83\81[\82ª\83A\83C\83e\83\80\82ð\88ù\82Þ\8f\88\97\9d
* @return \8eÀ\8dÛ\82É\83A\83C\83e\83\80\82ð\88ù\82Þ\8f\88\97\9d\82ð\8e\8e\82Ý\82½\82çtrue\82ð\95Ô\82·
* @todo Creature::QuaffItem()\8e\9e\82É\94\90¶\82·\82é\89e\8b¿\82Ì\8eÀ\91\95
*/
- bool Creature::QuaffItem(std::map<ID, boost::shared_ptr<Item>>::iterator itemIt);
+ bool Creature::QuaffItem(std::map<ID, std::shared_ptr<Item>>::iterator itemIt);
/*!
* @brief \83N\83\8a\81[\83`\83\83\81[\82ª\83A\83C\83e\83\80\82ð\94\93®\82·\82é\8f\88\97\9d
* @return \8eÀ\8dÛ\82É\83A\83C\83e\83\80\82ð\94\93®\8f\88\97\9d\82ð\8e\8e\82Ý\82½\82çtrue\82ð\95Ô\82·
* @todo Creature::ActivateItem()\8e\9e\82É\94\90¶\82·\82é\89e\8b¿\82Ì\8eÀ\91\95
*/
- bool Creature::ActivateItem(std::map<ID, boost::shared_ptr<Item>>::iterator itemIt);
+ bool Creature::ActivateItem(std::map<ID, std::shared_ptr<Item>>::iterator itemIt);
/*!
* @brief \83N\83\8a\81[\83`\83\83\81[\82ª\83A\83C\83e\83\80\82ð\93\8a\9d±\82·\82é\8f\88\97\9d
* @return \8eÀ\8dÛ\82É\83A\83C\83e\83\80\93\8a\9d±\8f\88\97\9d\82ð\8e\8e\82Ý\82½\82çtrue\82ð\95Ô\82·
* @todo Creature::ThrowItem()\8e\9e\82É\94\90¶\82·\82é\89e\8b¿\82Ì\8eÀ\91\95
*/
- bool Creature::ThrowItem(std::map<ID, boost::shared_ptr<Item>>::iterator itemIt);
+ bool Creature::ThrowItem(std::map<ID, std::shared_ptr<Item>>::iterator itemIt);
/*!
* @brief \83N\83\8a\81[\83`\83\83\81[\82ª\83A\83C\83e\83\80\82ð\93Ç\82Þ\8f\88\97\9d
* @return \8eÀ\8dÛ\82É\83A\83C\83e\83\80\82ð\93Ç\82Þ\8f\88\97\9d\82ð\8e\8e\82Ý\82½\82çtrue\82ð\95Ô\82·
* @todo Creature::ReadItem()\8e\9e\82É\94\90¶\82·\82é\89e\8b¿\82Ì\8eÀ\91\95
*/
- bool Creature::ReadItem(std::map<ID, boost::shared_ptr<Item>>::iterator itemIt);
+ bool Creature::ReadItem(std::map<ID, std::shared_ptr<Item>>::iterator itemIt);
/*!
* @brief \83N\83\8a\81[\83`\83\83\81[\82ª\8ew\92è\92n\93_\82É\90N\93ü\89Â\94\\82©\82ð\95Ô\82·
}
-BOOST_CLASS_VERSION(Deeangband::Creature, 10);
}
-BOOST_CLASS_VERSION(Deeangband::CreatureTemplate, 10);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::CreatureTrait, 10);
DICE_NUMBER num; //!< \83_\83C\83X\82Ì\90\94
DICE_SIDE side; //!< \83_\83C\83X\82Ì\96Ê\90\94
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::Dice, 10);
NAME name;
int disciplinePoint[MAX_DISCIPLINE_TYPES];
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::Discipline, 11);
Coordinates position; //!<\8f\8a\8dÝ\8dÀ\95W
DOOR_STATUS status; //!<\83h\83A\82Ì\8fó\91Ô
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::Door, 10);
TAG guardianSpecies; //!< \83_\83\93\83W\83\87\83\93\82Ì\8eç\8cì\8eÒ\83^\83O
Coordinates baseSize; //!< \83_\83\93\83W\83\87\83\93\82Ì\8aî\96{\83T\83C\83Y
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::Dungeon, 10);
std::string name;
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::Effect, 10);
-typedef std::map<ID, boost::shared_ptr<Creature>> CREATURE_LIST;
-typedef std::map<ID, boost::shared_ptr<Creature>>::iterator CREATURE_IT;
+typedef std::map<ID, std::shared_ptr<Creature>> CREATURE_LIST;
+typedef std::map<ID, std::shared_ptr<Creature>>::iterator CREATURE_IT;
-typedef std::vector<boost::shared_ptr<HaveGameTime>> ACTION_LIST;
-typedef std::vector<boost::shared_ptr<HaveGameTime>>::iterator ACTION_IT;
+typedef std::vector<std::shared_ptr<HaveGameTime>> ACTION_LIST;
+typedef std::vector<std::shared_ptr<HaveGameTime>>::iterator ACTION_IT;
namespace Deeangband
{
- Field::Field(std::map<TAG, boost::shared_ptr<Dungeon>>::iterator dungeonIt, DEPTH depth) : GameInstance()
+ Field::Field(std::map<TAG, std::shared_ptr<Dungeon>>::iterator dungeonIt, DEPTH depth) : GameInstance()
{
Dungeon *dungeonPtr = &(*dungeonIt->second);
int x, y;
{
for(x = 0; x < width; x++)
{
- squares[y].push_back(boost::shared_ptr<Square>(new Square()));
+ squares[y].push_back(std::shared_ptr<Square>(new Square()));
if(Dice::Cast(1, 4) == 3)
{
squares[y][x]->SetFloor(dungeonPtr->GetInnerWallFloorTag());
return this->GetSquare(coord.GetX(), coord.GetY());
}
- bool Field::GenerateTrap(std::map<TAG, boost::shared_ptr<TrapBase>>::iterator trapBaseIt, Coordinates *position)
+ bool Field::GenerateTrap(std::map<TAG, std::shared_ptr<TrapBase>>::iterator trapBaseIt, Coordinates *position)
{
traps.emplace(traps.end(), boost::make_shared<Trap>(trapBaseIt, position));
return true;
void Field::createRectRoom(MAP_LENGTH sx, MAP_LENGTH sy, MAP_LENGTH ex, MAP_LENGTH ey)
{
Square *squarePtr;
- std::vector<boost::shared_ptr<Coordinates>> wallVec;
+ std::vector<std::shared_ptr<Coordinates>> wallVec;
MAP_LENGTH x, y;
wallVec.clear();
class Field : public GameInstance
{
private:
- std::vector<std::vector<boost::shared_ptr<Square>>> squares; //!<\83t\83\8d\83A\83}\83X\82Ì\94z\97ñ
- std::vector<boost::shared_ptr<Creature>> creatures; //!<\83N\83\8a\81[\83`\83\83\81[\83C\83\93\83X\83^\83\93\83X\82Ì\94z\97ñ
- std::vector<boost::shared_ptr<Door>> doors; //!<\83h\83A\83C\83\93\83X\83^\83\93\83X\82Ì\94z\97ñ
- std::vector<boost::shared_ptr<Trap>> traps; //!<\83g\83\89\83b\83v\83C\83\93\83X\83^\83\93\83X\82Ì\94z\97ñ
- std::vector<boost::shared_ptr<Item>> items; //!<\83A\83C\83e\83\80\83C\83\93\83X\83^\83\93\83X\82Ì\94z\97ñ
+ std::vector<std::vector<std::shared_ptr<Square>>> squares; //!<\83t\83\8d\83A\83}\83X\82Ì\94z\97ñ
+ std::vector<std::shared_ptr<Creature>> creatures; //!<\83N\83\8a\81[\83`\83\83\81[\83C\83\93\83X\83^\83\93\83X\82Ì\94z\97ñ
+ std::vector<std::shared_ptr<Door>> doors; //!<\83h\83A\83C\83\93\83X\83^\83\93\83X\82Ì\94z\97ñ
+ std::vector<std::shared_ptr<Trap>> traps; //!<\83g\83\89\83b\83v\83C\83\93\83X\83^\83\93\83X\82Ì\94z\97ñ
+ std::vector<std::shared_ptr<Item>> items; //!<\83A\83C\83e\83\80\83C\83\93\83X\83^\83\93\83X\82Ì\94z\97ñ
MAP_LENGTH width; //!< \83t\83\8d\83A\82Ì\89¡\83T\83C\83Y
MAP_LENGTH height; //!< \83t\83\8d\83A\82Ì\8fc\83T\83C\83Y
TAG dungeonTag; //!< \90¶\90¬\8c³\83_\83\93\83W\83\87\83\93\83^\83O
Dungeon *dungeonPtr; //!< \83_\83\93\83W\83\87\83\93\83|\83C\83\93\83^
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
* </ul>
* @todo Dungeon\8fî\95ñ\82ð\8aî\82É\82µ\82½\83R\83\93\83X\83g\83\89\83N\83^\82Ì\90¶\90¬\82ð\8eÀ\91\95
*/
- Field::Field(std::map<TAG, boost::shared_ptr<Dungeon>>::iterator dungeonIt, DEPTH depth);
+ Field::Field(std::map<TAG, std::shared_ptr<Dungeon>>::iterator dungeonIt, DEPTH depth);
/*!
* GenerateTrap\8aÖ\90\94\82Í\83^\83O\82Å\8ew\8e¦\82³\82ê\82½\83g\83\89\83b\83v\8eí\95Ê\82Ì\83g\83\89\83b\83v\82ð\83t\83\8d\83A\82Ì\8f\8a\92è\82Ì\88Ê\92u\82É\94z\92u\82·\82é\81B<br>
* @todo Field::GenerateTrap\82Ì\8eÀ\91\95
*/
- bool Field::GenerateTrap(std::map<TAG, boost::shared_ptr<TrapBase>>::iterator trapBaseIt, Coordinates *position);
+ bool Field::GenerateTrap(std::map<TAG, std::shared_ptr<TrapBase>>::iterator trapBaseIt, Coordinates *position);
/*!
* @brief \8ew\92è\92n\93_\82©\82ç\82Ì\8e\8b\8aE\82ð\95Ô\82·
}
-BOOST_CLASS_VERSION(Deeangband::Field, 10);
class FixedArtifact : public ItemTemplate
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
};
}
-BOOST_CLASS_VERSION(Deeangband::FixedArtifact, 10);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::FixedField, 10);
private:
- friend class boost::serialization::access;
bool isWall; //! \95Ç\92n\8c`\82Å\82 \82é\82©\82Ç\82¤\82©\82Ì\94»\92è
}
-BOOST_CLASS_VERSION(Deeangband::Floor, 11);
DEPTH startDepth; //!<\83v\83\8c\83C\83\84\81[\82Ì\8aJ\8en\8aK\91w
TAG finalQuest; //!<\8dÅ\8fI\83N\83G\83X\83g\83^\83O
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::GameCampaign, 10);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::GameConstants, 10);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::GameElement, 10);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::GameInstance, 10);
{
protected:
std::ofstream ofs;
- std::vector<boost::shared_ptr<GameMessage>> gameMessages; //!< \83Q\81[\83\80\83\8d\83O\94z\97ñ
+ std::vector<std::shared_ptr<GameMessage>> gameMessages; //!< \83Q\81[\83\80\83\8d\83O\94z\97ñ
public:
std::string message;
GAMEMESSAGE_TYPE type;
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::GameMessage, 10);
void GameSurfaceSDL::initInterfaces(GameWorld *gameWorld)
{
- std::map<TAG, boost::shared_ptr<Floor>>::iterator floorIt;
- std::map<TAG, boost::shared_ptr<Species>>::iterator speciesIt;
+ std::map<TAG, std::shared_ptr<Floor>>::iterator floorIt;
+ std::map<TAG, std::shared_ptr<Species>>::iterator speciesIt;
SDL_Surface *surface, *tempSurface, *symbolSurface;
//! @note TTF\83t\83H\83\93\83g\82Ì\93Ç\82Ý\8d\9e\82Ý
#include "GameSurface.h"
-BOOST_CLASS_VERSION(GameSurfaceSDL, 1);
namespace Deeangband
{
void GameWorld::Initialize(void)
{
int i;
- std::map<ID, boost::shared_ptr<Field>>::iterator fieldIt;
- std::map<TAG, boost::shared_ptr<Species>>::iterator speciesIt;
+ std::map<ID, std::shared_ptr<Field>>::iterator fieldIt;
+ std::map<TAG, std::shared_ptr<Species>>::iterator speciesIt;
fieldList.emplace(0, boost::make_shared<Field>(dungeonList.find("VANILLA_WOMB"), 1));
fieldIt = fieldList.find(0);
{
}
- bool GameWorld::GenerateCreature(std::map<TAG, boost::shared_ptr<Species>>::iterator& speciesIt)
+ bool GameWorld::GenerateCreature(std::map<TAG, std::shared_ptr<Species>>::iterator& speciesIt)
{
creatureList.emplace(this->creatureID, boost::make_shared<Creature>(speciesIt));
do
return true;
}
- bool GameWorld::GenerateCreature(std::map<TAG, boost::shared_ptr<Species>>::iterator& speciesIt, std::map<ID, boost::shared_ptr<Field>>::iterator& fieldIt, MAP_LENGTH x, MAP_LENGTH y)
+ bool GameWorld::GenerateCreature(std::map<TAG, std::shared_ptr<Species>>::iterator& speciesIt, std::map<ID, std::shared_ptr<Field>>::iterator& fieldIt, MAP_LENGTH x, MAP_LENGTH y)
{
- std::map<ID, boost::shared_ptr<Creature>>::iterator creatureIt;
+ std::map<ID, std::shared_ptr<Creature>>::iterator creatureIt;
HaveGameTime *test;
creatureList.emplace(this->creatureID, boost::make_shared<Creature>(speciesIt, fieldIt, x, y));
creatureIt = creatureList.find(this->creatureID);
return &(*creatureList[id]);
}
- std::map<TAG, boost::shared_ptr<Ability>> *GameWorld::GetAbilityList(void)
+ std::map<TAG, std::shared_ptr<Ability>> *GameWorld::GetAbilityList(void)
{
return &(this->abilityList);
}
return &(*floorList[tag]);
}
- std::map<TAG, boost::shared_ptr<Floor>> *GameWorld::GetFloorList(void)
+ std::map<TAG, std::shared_ptr<Floor>> *GameWorld::GetFloorList(void)
{
return &floorList;
}
- std::map<TAG, boost::shared_ptr<Species>> *GameWorld::GetSpeciesList(void)
+ std::map<TAG, std::shared_ptr<Species>> *GameWorld::GetSpeciesList(void)
{
return &speciesList;
}
#include "stdafx.h"
#include "Deeangband.h"
-BOOST_CLASS_VERSION(GameWorld, 1);
namespace Deeangband
{
private:
//\90Ã\93I\83f\81[\83^\83\8a\83X\83g
- std::map<TAG, boost::shared_ptr<Air>> airList; /*!<\91S\91å\8bC\92n\8c`\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<Ability>> abilityList; /*!<\91S\94\93®\8bZ\94\\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<Authority>> authorityList; /*!<\91S\8c \94\\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<Building>> buildingList; /*!<\91S\8e{\90Ý\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<Camp>> campList; /*!<\91S\90w\89c\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<CreatureTrait>> creatureTraitList; /*!<\91S\83N\83\8a\81[\83`\83\83\81[\93Á\90«\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<Dungeon>> dungeonList; /*!<\91S\83_\83\93\83W\83\87\83\93\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<Effect>> effectList; /*!<\91S\8cø\89Ê\91®\90«\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<Floor>> floorList; /*!<\91S\8f°\92n\8c`\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<FixedArtifact>> fixedArtifactList; /*!<\91S\8cÅ\92è\83A\81[\83e\83B\83t\83@\83N\83g\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<ItemBase>> itemBaseList; /*!<\91S\83A\83C\83e\83\80\83x\81[\83X\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<ItemEgo>> itemEgoList; /*!<\91S\83A\83C\83e\83\80\83G\83S\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<ItemTrait>> itemTraitList; /*!<\91S\83A\83C\83e\83\80\93Á\90«\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<Karma>> karmaList; /*!<\91S\83J\83\8b\83}\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<Quest>> questList; /*!<\91S\83N\83G\83X\83g\93Á\90«\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<Space>> spaceList; /*!<\91S\8bó\8aÔ\92n\8c`\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<Skill>> skillList; /*!<\91S\83X\83L\83\8b\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<Species>> speciesList; /*!<\91S\83N\83\8a\81[\83`\83\83\81[\8eí\95Ê\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<StartingClass>> startingClassList; /*!<\91S\8fo\8e©\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<Race>> raceList; /*!<\91S\8eí\91°\83\8a\83X\83g*/
- std::map<TAG, boost::shared_ptr<TrapBase>> trapBaseList; /*!<\91S\83g\83\89\83b\83v\83x\81[\83X\8eí\95Ê\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<Air>> airList; /*!<\91S\91å\8bC\92n\8c`\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<Ability>> abilityList; /*!<\91S\94\93®\8bZ\94\\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<Authority>> authorityList; /*!<\91S\8c \94\\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<Building>> buildingList; /*!<\91S\8e{\90Ý\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<Camp>> campList; /*!<\91S\90w\89c\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<CreatureTrait>> creatureTraitList; /*!<\91S\83N\83\8a\81[\83`\83\83\81[\93Á\90«\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<Dungeon>> dungeonList; /*!<\91S\83_\83\93\83W\83\87\83\93\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<Effect>> effectList; /*!<\91S\8cø\89Ê\91®\90«\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<Floor>> floorList; /*!<\91S\8f°\92n\8c`\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<FixedArtifact>> fixedArtifactList; /*!<\91S\8cÅ\92è\83A\81[\83e\83B\83t\83@\83N\83g\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<ItemBase>> itemBaseList; /*!<\91S\83A\83C\83e\83\80\83x\81[\83X\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<ItemEgo>> itemEgoList; /*!<\91S\83A\83C\83e\83\80\83G\83S\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<ItemTrait>> itemTraitList; /*!<\91S\83A\83C\83e\83\80\93Á\90«\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<Karma>> karmaList; /*!<\91S\83J\83\8b\83}\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<Quest>> questList; /*!<\91S\83N\83G\83X\83g\93Á\90«\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<Space>> spaceList; /*!<\91S\8bó\8aÔ\92n\8c`\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<Skill>> skillList; /*!<\91S\83X\83L\83\8b\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<Species>> speciesList; /*!<\91S\83N\83\8a\81[\83`\83\83\81[\8eí\95Ê\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<StartingClass>> startingClassList; /*!<\91S\8fo\8e©\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<Race>> raceList; /*!<\91S\8eí\91°\83\8a\83X\83g*/
+ std::map<TAG, std::shared_ptr<TrapBase>> trapBaseList; /*!<\91S\83g\83\89\83b\83v\83x\81[\83X\8eí\95Ê\83\8a\83X\83g*/
//\93®\93I\83f\81[\83^\83\8a\83X\83g
- std::map<ID, boost::shared_ptr<Item>> itemList; /*!<\91S\83A\83C\83e\83\80\83\8a\83X\83g*/
+ std::map<ID, std::shared_ptr<Item>> itemList; /*!<\91S\83A\83C\83e\83\80\83\8a\83X\83g*/
CREATURE_LIST creatureList; /*!<\91S\83N\83\8a\81[\83`\83\83\81[\83\8a\83X\83g*/
- std::map<ID, boost::shared_ptr<Field>> fieldList; /*!<\91S\83t\83\8d\83A\83\8a\83X\83g*/
- std::map<ID, boost::shared_ptr<Trap>> trapList; /*!<\91S\83g\83\89\83b\83v\83\8a\83X\83g*/
+ std::map<ID, std::shared_ptr<Field>> fieldList; /*!<\91S\83t\83\8d\83A\83\8a\83X\83g*/
+ std::map<ID, std::shared_ptr<Trap>> trapList; /*!<\91S\83g\83\89\83b\83v\83\8a\83X\83g*/
ID itemID; //!<\8bó\82«\83A\83C\83e\83\80ID
ID creatureID; //!<\8bó\82«\83N\83\8a\81[\83`\83\83\81[ID
ID fieldID; //!<\8bó\82«\83t\83B\81[\83\8b\83hID
ID trapID; //!<\8bó\82«\83g\83\89\83b\83vID
- std::vector<boost::shared_ptr<HaveGameTime>> actionList; /*!<\8ds\93®\8f\87\83\8a\83X\83g*/
+ std::vector<std::shared_ptr<HaveGameTime>> actionList; /*!<\8ds\93®\8f\87\83\8a\83X\83g*/
std::vector<Creature *> actionList2; /*!<\8ds\93®\8f\87\83\8a\83X\83g*/
std::vector<HaveGameTime*> actionList3; /*!<\8ds\93®\8f\87\83\8a\83X\83g*/
CREATURE_IT playerIt; //!< \83v\83\8c\83C\83\84\81[\83N\83\8a\81[\83`\83\83\81[\8eQ\8fÆ\83|\83C\83\93\83^
GAME_TIME gameTime; //!<\83Q\81[\83\80\8e\9e\8aÔ
- friend class boost::serialization::access;
/*!
* @brief \91å\8bC\92n\8c`\8fî\95ñ\82Ì\83Z\81[\83u
* @param creatureTag \83N\83\8a\81[\83`\83\83\81[\83^\83O
* @return \90¶\90¬\82É\90¬\8c÷\82µ\82½\8fê\8d\87true\82ð\95Ô\82·
*/
- bool GameWorld::GenerateCreature(std::map<TAG, boost::shared_ptr<Species>>::iterator& speciesIt);
+ bool GameWorld::GenerateCreature(std::map<TAG, std::shared_ptr<Species>>::iterator& speciesIt);
/*!
* @brief \83N\83\8a\81[\83`\83\83\81[\82ð\90¶\90¬\82µGameWorld\92\86\82Ì\8f\94\97v\91f\82Æ\98A\8cg\82³\82¹\82é
* @param y \94z\92u\90æY\8dÀ\95W
* @return \90¶\90¬\82É\90¬\8c÷\82µ\82½\8fê\8d\87true\82ð\95Ô\82·
*/
- bool GameWorld::GenerateCreature(std::map<TAG, boost::shared_ptr<Species>>::iterator& speciesIt, std::map<ID, boost::shared_ptr<Field>>::iterator& fieldIt, MAP_LENGTH x, MAP_LENGTH y);
+ bool GameWorld::GenerateCreature(std::map<TAG, std::shared_ptr<Species>>::iterator& speciesIt, std::map<ID, std::shared_ptr<Field>>::iterator& fieldIt, MAP_LENGTH x, MAP_LENGTH y);
/*!
* @brief GameWorld\92\86\82É\91¶\8dÝ\82·\82é\8c \94\\82ð\95Ô\82·
* @brief GameWorld\92\86\82É\91¶\8dÝ\82·\82é\94\93®\8bZ\94\\82ð\95Ô\82·
* @return \91S\94\93®\8bZ\94\\82Ì\83\8a\83X\83g
*/
- std::map<TAG, boost::shared_ptr<Ability>> *GameWorld::GetAbilityList(void);
+ std::map<TAG, std::shared_ptr<Ability>> *GameWorld::GetAbilityList(void);
/*!
* @brief GameWorld\92\86\82É\91¶\8dÝ\82·\82é\83N\83\8a\81[\83`\83\83\81[\82ð\95Ô\82·
*/
Floor *GameWorld::GetFloorFromPosition(ID fieldID, Coordinates *positionPtr);
- std::map<TAG, boost::shared_ptr<Floor>> *GameWorld::GetFloorList(void);
+ std::map<TAG, std::shared_ptr<Floor>> *GameWorld::GetFloorList(void);
- std::map<TAG, boost::shared_ptr<Species>> *GameWorld::GetSpeciesList(void);
+ std::map<TAG, std::shared_ptr<Species>> *GameWorld::GetSpeciesList(void);
/*!
* @brief \8e\9e\8aÔ\8co\89ß\8f\88\97\9d\82ð\8ds\82¢\81A\8e\9f\82Ì\83A\83N\83V\83\87\83\93\83I\83u\83W\83F\83N\83g\82ð\95Ô\82·\81B
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::HaveGameTime, 10);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
};
}
-BOOST_CLASS_VERSION(Deeangband::HaveHp, 10);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::HaveInventory, 10);
return;
}
- HavePosition::HavePosition(std::map<ID, boost::shared_ptr<Field>>::iterator fieldIt, MAP_LENGTH x, MAP_LENGTH y)
+ HavePosition::HavePosition(std::map<ID, std::shared_ptr<Field>>::iterator fieldIt, MAP_LENGTH x, MAP_LENGTH y)
{
this->position.Set(x, y);
this->fieldID = fieldIt->first;
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
Coordinates position; //!< \8f\8a\8dÝ\8dÀ\95W
ID fieldID; //!< \8c»\8dÝ\83t\83\8d\83AID
- boost::shared_ptr<Field> fieldPtr; //!< \8c»\8dÝ\83t\83\8d\83A\8eQ\8fÆ\83|\83C\83\93\83^
+ std::shared_ptr<Field> fieldPtr; //!< \8c»\8dÝ\83t\83\8d\83A\8eQ\8fÆ\83|\83C\83\93\83^
public:
* @param x \8f\89\8aúx\8dÀ\95W
* @param y \8f\89\8aúy\8dÀ\95W
*/
- HavePosition::HavePosition(std::map<ID, boost::shared_ptr<Field>>::iterator fieldIt, MAP_LENGTH x, MAP_LENGTH y);
+ HavePosition::HavePosition(std::map<ID, std::shared_ptr<Field>>::iterator fieldIt, MAP_LENGTH x, MAP_LENGTH y);
/*!
};
}
-BOOST_CLASS_VERSION(Deeangband::HavePosition, 10);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
};
}
-BOOST_CLASS_VERSION(Deeangband::HaveRace, 10);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::HaveSize, 10);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
};
}
-BOOST_CLASS_VERSION(Deeangband::HaveSymbol, 10);
}
-Item::Item(std::map<TAG, boost::shared_ptr<ItemBase>>::iterator itemBaseIt) : ItemTemplate(), GameInstance(), HaveGameTime(), HavePosition()
+Item::Item(std::map<TAG, std::shared_ptr<ItemBase>>::iterator itemBaseIt) : ItemTemplate(), GameInstance(), HaveGameTime(), HavePosition()
{
this->WipeData();
this->weight = itemBaseIt->second->GetWeight();
#include "HaveSymbol.h"
#include "HavePosition.h"
-BOOST_CLASS_VERSION(Item, 1);
namespace Deeangband
{
SavingTable baseSaving; //!< \8aî\96{\83Z\81[\83r\83\93\83O\8fC\90³
SavingTable plusSaving; //!< \92Ç\89Á\83Z\81[\83r\83\93\83O\8fC\90³
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
* @brief Item\83N\83\89\83X\83R\83\93\83X\83g\83\89\83N\83^
* @param itemBaseIt
*/
- Item::Item(std::map<TAG, boost::shared_ptr<ItemBase>>::iterator itemBaseIt);
+ Item::Item(std::map<TAG, std::shared_ptr<ItemBase>>::iterator itemBaseIt);
/*!
* @brief Item\83N\83\89\83X\83f\83X\83g\83\89\83N\83^
#include "SavingTable.h"
#include "HaveSymbol.h"
-BOOST_CLASS_VERSION(ItemBase, 1);
namespace Deeangband
{
SavingTable baseSaving; //!< \8aî\96{\83Z\81[\83r\83\93\83O\8fC\90³
SavingTable plusSaving; //!< \92Ç\89Á\83Z\81[\83r\83\93\83O\8fC\90³
- friend class boost::serialization::access;
template<class Archive> void serialize(Archive &archive, const unsigned int)
{
archive & boost::serialization::make_nvp("Name", name);
#include "SavingTable.h"
#include "HaveSymbol.h"
-BOOST_CLASS_VERSION(ItemEgo, 1);
namespace Deeangband
{
private:
- friend class boost::serialization::access;
template<class Archive> void serialize(Archive &archive, const unsigned int)
{
SavingTable baseSaving; //!< \8aî\96{\83Z\81[\83r\83\93\83O\8fC\90³
SavingTable plusSaving; //!< \92Ç\89Á\83Z\81[\83r\83\93\83O\8fC\90³
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::ItemTemplate, 10);
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
Discipline desciplinePlus; //!< \8fC\97{\92l\8fC\90³
TAG antiKarma; //!< \91Î\97§\83J\83\8b\83}
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::Karma, 10);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::Lore, 10);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::MixedRace, 10);
std::string name; //!< \83N\83G\83X\83g\96¼
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::Quest, 10);
BaseStatusTable pureStatusPlus; /*!<\8f\83\8c\8c\83X\83e\81[\83^\83X\8fC\90³*/
BaseStatusTable halfStatusPlus; /*!<\8d¬\8c\8c\83X\83e\81[\83^\83X\8fC\90³*/
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::Race, 10);
EV evasion; /*!< \89ñ\94ð\83Z\81[\83u\92l */
VO volition; /*!< \88Ó\8ev\83Z\81[\83u\92l */
- friend class boost::serialization::access;
template<class Archive> void serialize(Archive &archive, const unsigned int)
{
archive & BOOST_SERIALIZATION_NVP(armor);
}
-BOOST_CLASS_VERSION(Deeangband::SavingTable, 10);
std::string name;
std::string details;
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Skill, 1);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::Space, 10);
std::vector<TAG> authorityTags; //!< \8c \94\\83^\83O\94z\97ñ
- friend class boost::serialization::access;
template<class Archive> void serialize(Archive &archive, const unsigned int version)
{
if(version >= 0)
}
-BOOST_CLASS_VERSION(Deeangband::Species, 10);
WipeData();
}
- Square::Square(std::map<TAG, boost::shared_ptr<Floor>>::iterator& floorIt) : GameElement(), HaveInventory(), HaveHp()
+ Square::Square(std::map<TAG, std::shared_ptr<Floor>>::iterator& floorIt) : GameElement(), HaveInventory(), HaveHp()
{
WipeData();
this->floorPtr = floorIt->second.get();
TAG airTag; //!<\91å\8bC\92n\8c`\83^\83O
Floor *floorPtr;
- friend class boost::serialization::access;
template<class Archive> void serialize(Archive &archive, const unsigned int)
{
archive & boost::serialization::make_nvp("Floor", floorTag);
*/
Square::Square();
- Square::Square(std::map<TAG, boost::shared_ptr<Floor>>::iterator& floorIt);
+ Square::Square(std::map<TAG, std::shared_ptr<Floor>>::iterator& floorIt);
/*!
}
-BOOST_CLASS_VERSION(Deeangband::Square, 10);
Coordinates position1; //!<\90Ú\91±\8dÀ\95W1
Coordinates position2; //!<\90Ú\91±\8dÀ\95W2
- friend class boost::serialization::access;
template<class Archive> void serialize(Archive &archive, const unsigned int version)
{
if(version >= 0)
}
-BOOST_CLASS_VERSION(Deeangband::Stair, 10);
{
private:
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
}
-BOOST_CLASS_VERSION(Deeangband::StartingClass, 10);
this->WipeData();
}
- Trap::Trap(std::map<TAG, boost::shared_ptr<TrapBase>>::iterator trapBaseIt, Coordinates *position) : GameInstance()
+ Trap::Trap(std::map<TAG, std::shared_ptr<TrapBase>>::iterator trapBaseIt, Coordinates *position) : GameInstance()
{
this->WipeData();
this->position = *position;
HP maxHP; //!<\8dÅ\91å\91Ï\8bv\93x
POWER difficulty; //!<\89ð\8f\9c\93ï\93x
- friend class boost::serialization::access;
/*!
* @brief \83N\83\89\83X\82Ì\83V\83\8a\83A\83\89\83C\83Y\82ð\90Ý\92è\82·\82é
/*!
* @brief Trap\83N\83\89\83X\83R\83\93\83X\83g\83\89\83N\83^
*/
- Trap::Trap(std::map<TAG, boost::shared_ptr<TrapBase>>::iterator trapBaseIt, Coordinates *position);
+ Trap::Trap(std::map<TAG, std::shared_ptr<TrapBase>>::iterator trapBaseIt, Coordinates *position);
/*!
* @brief Trap\83N\83\89\83X\83f\83X\83g\83\89\83N\83^
}
-BOOST_CLASS_VERSION(Deeangband::Trap, 10);
*/
class TrapBase : public GameElement
{
- friend class boost::serialization::access;
DEPTH minDepth; //!<\90¶\90¬\8dÅ\92á\8aK\91w
DEPTH maxDepth; //!<\90¶\90¬\8dÅ\91å\8aK\91w
RARITY rarity; //!<\90¶\90¬\83\8c\83A\83\8a\83e\83B
}
-BOOST_CLASS_VERSION(Deeangband::TrapBase, 10);
#include <memory.h>
#include <tchar.h>
-
//! \83v\83\8d\83O\83\89\83\80\82É\95K\97v\82È\92Ç\89Á\83w\83b\83_\81[\82ð\82±\82±\82Å\8eQ\8fÆ\82µ\82Ä\82\82¾\82³\82¢\81B
#include <iterator>
#include <iostream>
#include <cassert>
#include <fstream>
#include <ctime>
-#include <boost/format.hpp>
-#include <boost/fusion/container/map.hpp>
-#include <boost/fusion/include/map.hpp>
-#include <boost/fusion/container/map/map_fwd.hpp>
-#include <boost/fusion/include/map_fwd.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/make_shared.hpp>
-#include <boost/serialization/export.hpp>
-#include <boost/serialization/serialization.hpp>
-#include <boost/serialization/string.hpp>
-#include <boost/serialization/version.hpp>
-#include <boost/serialization/split_member.hpp>
-#include <boost/serialization/nvp.hpp>
-#include <boost/serialization/string.hpp>
-#include <boost/serialization/vector.hpp>
-#include <boost/serialization/map.hpp>
-#include <boost/serialization/shared_ptr.hpp>
-#include <boost/serialization/list.hpp>
-#include <boost/serialization/assume_abstract.hpp>
-#include <boost/archive/xml_oarchive.hpp>
-#include <boost/archive/xml_iarchive.hpp>
-#include <boost/archive/binary_oarchive.hpp>
-#include <boost/archive/binary_iarchive.hpp>
-#include <boost/asio.hpp>
-#include <boost/bind.hpp>
-#include <boost/thread.hpp>