1
0
mirror of https://github.com/ScrelliCopter/tmx2gba.git synced 2025-02-21 03:29:25 +11:00

Refactored TMX loading & argument parsing code.

This commit is contained in:
2015-10-26 01:33:32 +11:00
parent 0d30afd74d
commit f213fca3cc
7 changed files with 402 additions and 197 deletions

30
src/tmxreader.h Normal file
View File

@@ -0,0 +1,30 @@
#ifndef __TMXREADER_H__
#define __TMXREADER_H__
#include <istream>
#include <vector>
class CTmxLayer;
class CTmxReader
{
public:
CTmxReader ();
~CTmxReader ();
void Open ( std::istream& a_in );
int GetWidth () const;
int GetHeight () const;
const CTmxLayer* GetLayer ( int a_iId ) const;
const CTmxLayer* GetLayer ( std::string a_strName ) const;
int GetLayerCount () const;
private:
int m_iWidth, m_iHeight;
std::vector<CTmxLayer*> m_vpLayers;
};
#endif//__TMXREADER_H__