*/
void Creature::XMLSave(std::string filename);
+ /*!
+ * @brief \83N\83\8a\81[\83`\83\83\81[\82ð\8ew\92è\95û\8ap\82É\95à\82©\82¹\82é
+ * @param dir \95à\8ds\95û\8cü
+ * @return \88Ú\93®\8f\88\97\9d\82ª\8eÀ\8dÛ\82É\8e\8e\82Ý\82ç\82ê\82½\82çtrue\82ð\95Ô\82·
+ */
+ bool Creature::Walk(DIRECTION dir);
+
};
}
PLAY_EXIT_CODE GameEngine::DoGameCommand(GAME_COMMAND command)
{
+ Creature *playerPtr = gameWorld->GetPlayerCreature();
+
switch(command)
{
case GAME_COMMAND_VIEW_PLAYER_STATUS:
return PLAY_EXIT_QUIT;
break;
case GAME_COMMAND_NORTH:
+ playerPtr->Walk(DIRECTION_NORTH);
break;
case GAME_COMMAND_NORTH_EAST:
+ playerPtr->Walk(DIRECTION_NORTH_EAST);
break;
case GAME_COMMAND_EAST:
+ playerPtr->Walk(DIRECTION_EAST);
break;
case GAME_COMMAND_SOUTH_EAST:
+ playerPtr->Walk(DIRECTION_SOUTH_EAST);
break;
case GAME_COMMAND_SOUTH:
+ playerPtr->Walk(DIRECTION_SOUTH);
break;
case GAME_COMMAND_SOUTH_WEST:
+ playerPtr->Walk(DIRECTION_SOUTH_WEST);
break;
case GAME_COMMAND_WEST:
+ playerPtr->Walk(DIRECTION_WEST);
break;
case GAME_COMMAND_NORTH_WEST:
+ playerPtr->Walk(DIRECTION_NORTH_WEST);
break;
}
return PLAY_EXIT_NONE;