} while(event.type != SDL_KEYDOWN);
}
+ void GameSurfaceSDL::pushAnyKey(void)
+ {
+ SDL_Event event;
+ do
+ {
+ SDL_Rect rect = {0, 0, 0, 0};
+ this->drawSystemMessage();
+ SDL_UpdateWindowSurfaceRects(window, &rect, 1);
+ SDL_UpdateWindowSurface(window);
+
+ SDL_PollEvent(&event);
+ } while(event.type != SDL_KEYDOWN);
+ }
+
+
void GameSurfaceSDL::initInterfaces(GameWorld *gameWorld)
{
std::map<TAG, boost::shared_ptr<Floor>>::iterator floorIt;
{
this->currentSystemMessage = message;
systemMessageSurface = TTF_RenderUTF8_Blended(font, toUTF8(this->currentSystemMessage.c_str()).c_str(), color);
- //pushAnyKey();
+ pushAnyKey();
this->currentSystemMessage.erase();
SDL_FreeSurface(systemMessageSurface);
}
std::map<ID, SDL_Surface*> creatureSurfaces; //!< \83N\83\8a\81[\83`\83\83\81[\83O\83\89\83t\83B\83b\83N\82ÌSurface\8eQ\8fÆ\83\8a\83X\83g
void GameSurfaceSDL::pushAnyKey(const CREATURE_IT &subjectCreatureIt);
+ void GameSurfaceSDL::pushAnyKey(void);
/*!
* @brief \83C\83\93\83^\81[\83t\83F\83C\83X\83f\81[\83^\82Ì\8f\89\8aú\89»