SBSPSS/Utils/MapEdit/Export.h

64 lines
1.6 KiB
C
Raw Normal View History

2000-11-24 23:34:20 +01:00
/**************/
/*** Export ***/
/**************/
#ifndef __EXPORT_HEADER__
#define __EXPORT_HEADER__
#include "stdafx.h"
#include <Vector>
#include "Quantize.h"
/*****************************************************************************/
/*****************************************************************************/
/*****************************************************************************/
class CCore;
class CMap;
class CTile;
class CExport
{
public:
CExport(char *Filename);
~CExport();
2000-11-28 00:07:07 +01:00
void ExportLayerTile(char *LayerName,CMap &Map);
2000-11-24 23:34:20 +01:00
void ExportAll(CCore *Core);
void PrintTileList();
protected:
int FindTileInList(sMapElem &Tile);
int AddTileToList(sMapElem &Tile);
void ExportTiles(CCore *Core);
void ExportPalette(CCore *Core);
2000-11-28 00:07:07 +01:00
virtual void ExportLayerTileStart(char *LayerName,int Width,int Height)=0;
virtual void ExportLayerTile(sMapElem &Elem,int NewIdx)=0;
virtual void ExportLayerTileEnd(char *LayerName)=0;
virtual int GetMinLayerTileWidth()=0;
virtual int GetMinLayerTileHeight()=0;
2000-11-24 23:34:20 +01:00
2000-11-28 00:07:07 +01:00
virtual void ExportTileStart(int TileCount)=0;
2000-11-24 23:34:20 +01:00
virtual void ParseTile(CTile &ThisTile)=0;
virtual void CreateTilePalette()=0;
virtual void ExportTile(CTile &ThisTile)=0;
virtual void ExportTileEnd()=0;
virtual void ExportPaletteStart()=0;
virtual void ExportPalette()=0;
virtual void ExportPaletteEnd()=0;
2000-11-28 00:07:07 +01:00
char Drive[_MAX_DRIVE],Path[_MAX_DIR],Name[_MAX_FNAME],Ext[_MAX_EXT];
2000-11-24 23:34:20 +01:00
FILE *File;
int Count;
std::vector<sMapElem> UsedTileList;
};
/*****************************************************************************/
#endif