19 : rootPath_ (rootPath)
20 , imagePath_ (DEFAULT_IMAGE_PATH)
21 , texturePath_ (DEFAULT_TEXTURE_PATH)
22 , fontPath_ (DEFAULT_FONT_PATH)
23 , soundBufferPath_ (DEFAULT_SOUND_BUFFER_PATH)
24 , musicPath_ (DEFAULT_MUSIC_PATH)
41 for (
const auto& it :
fonts_)
98 sf::Image* image =
new sf::Image;
101 if (!image->loadFromFile (path))
114 sf::Texture* texture =
new sf::Texture;
117 if (!texture->loadFromFile (path))
130 sf::Font* font =
new sf::Font;
133 if (!font->loadFromFile (path))
146 sf::SoundBuffer* soundBuffer =
new sf::SoundBuffer;
149 if (!soundBuffer->loadFromFile (path))
162 sf::Music* music =
new sf::Music;
165 if (!music->openFromFile (path))
207 iFStream.open (path);
209 if (!iFStream.is_open ())
216 const Path& rootPath,