typedef std::map<ID, boost::shared_ptr<Creature>> CREATURE_LIST;
typedef std::map<ID, boost::shared_ptr<Creature>>::iterator CREATURE_IT;
+
+typedef std::vector<boost::shared_ptr<HaveGameTime>> ACTION_LIST;
{
creatureList.emplace(this->creatureID, boost::make_shared<Creature>(speciesList.find(creatureTag), fieldID, x, y));
actionList.push_back(creatureList[this->creatureID]);
+ creatureList[this->creatureID]->PlusWait(10);
do
{
this->creatureID++;
return this->playerPtr;
}
- std::vector<boost::shared_ptr<HaveGameTime>>* GameWorld::GetActionList(void)
+ ACTION_LIST* GameWorld::GetActionList(void)
{
return &(this->actionList);
}
//\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*/
- CREATURE_LIST creatureList; /*!<\91S\83N\83\8a\81[\83`\83\83\81[\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*/
* @brief \8ds\93®\8f\87\83\8a\83X\83g\82ð\95Ô\82·
* @return \8ds\93®\8f\87\83\8a\83X\83g
*/
- std::vector<boost::shared_ptr<HaveGameTime>>* GameWorld::GetActionList(void);
+ ACTION_LIST *GameWorld::GetActionList(void);
/*!
* @brief \8ew\92è\83t\83B\81[\83\8b\83h\8by\82Ñ\8dÀ\95W\82É\91¶\8dÝ\82·\82é\83N\83\8a\81[\83`\83\83\81[\82ª\82¢\82é\82©\82ð\94»\95Ê\82µ\83N\83\8a\81[\83`\83\83\81[\82ð\95Ô\82·\81B