mapfile.h

Go to the documentation of this file.
00001 #ifndef _MapFile_H_
00002 #define _MapFile_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 MapFile : public BaseFile
00012 {
00013 public:
00014 
00016         MapFile(FILESTRUCT* data);
00017 
00019         MapFile(const char* sFilename);
00020 
00022         MapFile();
00023 
00024         ~MapFile();
00025 
00027         uint32 GetVersion(){ return m_Map.nVersion; }
00028 
00030         Pos GetStartPosition(){ return m_Map.StartPosition; }
00031 
00033         uint16 GetStartAngle(){ return m_Map.nAngle; }
00034 
00036         uint16 GetStartSectorNum(){ return m_Map.nStartPointSecNum; }
00037         
00039         uint16 GetNumSectors(){ return m_Map.nNumSectors; }
00040 
00042         uint16 GetNumWalls(){ return m_Map.nNumWalls; }
00043 
00045         uint16 GetNumSprites(){ return m_Map.nNumSprites; }
00046 
00048         MAPSTRUCT* GetDataHandle(){ return &m_Map; }
00049 
00050 protected:
00051 
00053         MAPSTRUCT m_Map;
00054 
00055 };
00056 
00057 #endif

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