4#include <SFML/Graphics/Texture.hpp>
5#include <SFML/Graphics/Font.hpp>
6#include <SFML/Audio.hpp>
7#include <unordered_map>
29 [[nodiscard]] sf::Font&
getFont();
61 [[nodiscard]] sf::SoundBuffer&
getSoundBuffer(
const std::string& name);
68 sf::Texture pacmanLogo;
69 sf::Texture spriteSheet;
71 sf::Texture easterEgg;
72 bool easterEggToggle =
false;
75 std::unordered_map<std::string, sf::SoundBuffer> soundBuffers;
AssetManager(AssetManager &other)=delete
sf::Texture & getSpriteSheet()
Returns the Spritesheet.
Definition AssetManager.cpp:37
static AssetManager & getInstance()
Returns an instance of the AssetManager class.
Definition AssetManager.cpp:20
void operator=(const AssetManager &)=delete
sf::SoundBuffer & getSoundBuffer(const std::string &name)
Returns the sf::SoundBuffer of the file with the provided name.
Definition AssetManager.cpp:48
void toggleEasterEgg(bool toggle)
Toggle whether the regular or the easteregg spritesheet is used.
Definition AssetManager.cpp:43
sf::Texture & getPacmanLogo()
Returns the Pacman logo.
Definition AssetManager.cpp:33
sf::Font & getFont()
Returns the font used throughout the project.
Definition AssetManager.cpp:28