|
#ifndef _RESMANAGER_H_INCLUDED_
#define _RESMANAGER_H_INCLUDED_
class XParser;
class AtlasMaster;
class ResManager
{
public:
ResManager();
~ResManager();
const string& GetDirResources() const
{
return m_dirResources;
}
int GetScreenHeight() const
{
return m_screenHeight;
}
int GetScreenWidth() const
{
return m_screenWidth;
}
bool IsInitalised() const
{
return m_initialised;
}
void Init(const string& dirResources, const string& dirUser,
int width, int height);
void Release();
const string& GetDirUser() const
{
return m_dirUser;
}
XParser* GetXParser() const
{
return m_pXParser;
}
AtlasMaster* GetAtlasMaster()
{
return m_pAtlasMaster;
}
private:
int m_screenWidth;
int m_screenHeight;
string m_dirResources;
bool m_initialised;
string m_dirUser;
XParser* m_pXParser;
AtlasMaster* m_pAtlasMaster;
};
extern ResManager g_resManager;
#endif // _RESMANAGER_H_INCLUDED_
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
After working in the software industry for many years, I've started my own
games company that specialises in strategy games for mobile platforms.