#include <AssetManager.h>
◆ AssetManager()
Singletons should not be cloneable or assignable.
◆ getFont()
| sf::Font & AssetManager::getFont |
( |
| ) |
|
|
nodiscard |
Returns the font used throughout the project.
- Returns
- sf::Font
◆ getInstance()
◆ getPacmanLogo()
| sf::Texture & AssetManager::getPacmanLogo |
( |
| ) |
|
|
nodiscard |
Returns the Pacman logo.
- Returns
- Pacman logo
◆ getSoundBuffer()
| sf::SoundBuffer & AssetManager::getSoundBuffer |
( |
const std::string & | name | ) |
|
|
nodiscard |
Returns the sf::SoundBuffer of the file with the provided name.
Will return a cached sf::SoundBuffer if this exists, otherwise it will load and extract it from the file (save it to a cache) and return.
- Parameters
-
- Returns
- sf::SoundBuffer
◆ getSpriteSheet()
| sf::Texture & AssetManager::getSpriteSheet |
( |
| ) |
|
|
nodiscard |
Returns the Spritesheet.
- Returns
- Spritesheet
◆ operator=()
◆ toggleEasterEgg()
| void AssetManager::toggleEasterEgg |
( |
bool | toggle | ) |
|
Toggle whether the regular or the easteregg spritesheet is used.
- Parameters
-
The documentation for this class was generated from the following files: