SetSpeciesData(&(*speciesIt->second));
}
- Creature::Creature(std::map<TAG, boost::shared_ptr<Species>>::iterator speciesIt, ID FieldID, Coordinates *coordinates)
- : GameInstance(), HaveSymbol(), HaveHp(), HaveGameTime(), HavePosition(coordinates->GetX(), coordinates->GetY()), HaveInventory(), HaveSize()
- {
- this->fieldID = FieldID;
- WipeData();
- SetSpeciesData(&(*speciesIt->second));
- }
-
- Creature::Creature(std::map<TAG, boost::shared_ptr<Species>>::iterator speciesIt, ID FieldID, MAP_LENGTH x, MAP_LENGTH y)
- : GameInstance(), HaveSymbol(), HaveHp(), HaveGameTime(), HavePosition(x, y), HaveInventory(), HaveSize()
- {
- this->fieldID = FieldID;
- 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)
: GameInstance(), HaveSymbol(), HaveHp(), HaveGameTime(), HavePosition(fieldIt, x, y), HaveInventory(), HaveSize()
{
/*!
* @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^
- * @param fieldID \90¶\90¬\90æ\83t\83B\81[\83\8b\83hID
- * @param coordinates \90¶\90¬\90æ\8dÀ\95W
- */
- Creature::Creature(std::map<TAG, boost::shared_ptr<Species>>::iterator speciesIt, ID FieldID, Coordinates *coordinates);
-
- /*!
- * @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^
- * @param fieldID \90¶\90¬\90æ\83t\83B\81[\83\8b\83hID
- * @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, ID FieldID, int x, int y);
-
- /*!
- * @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[\83C\83e\83\8c\81[\83^\8eQ\8fÆ
* @param fieldIt \90¶\90¬\90æ\83t\83B\81[\83\8b\83h\83C\83e\83\8c\81[\83^\8eQ\8fÆ
* @param x \90¶\90¬\90æX\8dÀ\95W