SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
SpriteFontManagerAttorney.h
1#ifndef SpriteFontManagerAttorney_H
2#define SpriteFontManagerAttorney_H
3
4#include "../GameObject/Sprites/SpriteFont.h"
5#include "SpriteFontManager.h"
6
15{
16public:
25 {
26 private:
27 friend class SpriteFontManager;
28 friend class SpriteString;
29
30 static SpriteFont* Constructor(MapKey key, std::string path) { return new SpriteFont(key, path); };
31 static void Destructor(SpriteFont* ptr) { delete ptr; };
32 static SpriteFont::Glyph* GetGlyph(SpriteFont* ptr, char c) { return ptr->GetGlyph(c); };
33 };
34
43 {
44 private:
45 friend class SUNENGINE;
46 static void Delete() { SpriteFontManager::Delete(); };
47 };
48};
49
50#endif
Represents a font in the SUNENGINE.
Definition SpriteFont.h:19
Glyph * GetGlyph(char c)
Gets the glyph for a character.
Definition SpriteFont.cpp:26
SUNENGINESprite Glyph
Glyph type for the SpriteFont.
Definition SpriteFont.h:31
Provides access to the game loop related functions of SpriteFontManager.
Definition SpriteFontManagerAttorney.h:25
Provides access to the initialization and destruction related functions of SpriteFontManager.
Definition SpriteFontManagerAttorney.h:43
Provides access to the SpriteFontManager's private methods for specific classes.
Definition SpriteFontManagerAttorney.h:15
static void Delete()
Deletes the singleton instance of the SpriteFontManager.
Definition SpriteFontManager.h:92