artfile.h

Go to the documentation of this file.
00001 #ifndef _ArtFile_H_
00002 #define _ArtFile_H_
00003 
00004 #include "stdafx.h"
00005 #include "fileformatdefs.h"
00006 #include "vardefs.h"
00007 #include <stdio.h>
00008 #include "basefile.h"
00009 
00011 class ArtFile : public BaseFile
00012 {
00013 public:
00014 
00016         ArtFile(FILESTRUCT* data);
00017 
00019         ArtFile(const char* sFilename);
00020 
00022         ArtFile();
00023 
00024         ~ArtFile();
00025 
00027         uint32 GetVersion(){ return m_Art.nVersion; }
00028 
00033         uint32 GetNumTiles(){ return m_Art.nNumTiles; }
00034 
00036         uint32 GetTileStart(){ return m_Art.nTileStart; }
00037 
00039         uint32 GetTileEnd(){ return m_Art.nTileEnd; }
00040 
00042         uint16 GetTileSizeX(uint32 nNum);
00043         
00045         uint16 GetTileSizeY(uint32 nNum);
00046 
00048         ARTSTRUCT* GetDataHandle(){ return &m_Art; }
00049 
00050 protected:
00051 
00053         ARTSTRUCT m_Art;
00054 };
00055 
00056 #endif
00057 

Generated on Sat Jan 11 23:36:55 2003 for Build-Lib by doxygen1.2.18