SBSPSS/Utils/MapEdit/TileSet.h

63 lines
1.2 KiB
C
Raw Normal View History

2000-10-27 02:06:19 +02:00
/*********************/
/*** TileSet Stuph ***/
/*********************/
#ifndef __TILESET_HEADER__
#define __TILESET_HEADER__
#include "stdafx.h"
#include "gl3d.h"
#include <gl\gl.h>
#include <gl\glu.h>
#include <gl\glut.h>
#include <Vector>
2000-10-27 20:18:30 +02:00
#include "TexCache.h"
#include "Tile.h"
2000-10-27 02:06:19 +02:00
2000-10-27 20:18:30 +02:00
/*****************************************************************************/
2000-11-06 21:24:11 +01:00
class CCore;
class CTile;
2000-10-27 20:18:30 +02:00
/*****************************************************************************/
2000-11-06 21:24:11 +01:00
class CTileBank
{
public:
CTileBank();
~CTileBank();
void AddTileSet(char *Filename);
int NeedLoad() {return(LoadFlag);}
void LoadTileSets(CCore *Core);
CTile &GetTile(int Bank,int Tile);
private:
std::vector<CTileSet> TileSet;
BOOL LoadFlag;
};
2000-10-27 02:06:19 +02:00
/*****************************************************************************/
class CTileSet
{
public:
2000-11-06 21:24:11 +01:00
CTileSet(char *_Filename);
2000-10-27 02:06:19 +02:00
~CTileSet();
2000-10-27 22:21:39 +02:00
2000-11-06 21:24:11 +01:00
int IsLoaded() {return(Loaded);}
void Load(CCore *Core);
2000-10-27 22:21:39 +02:00
char *GetPath() {return(Path);}
2000-11-07 21:38:19 +01:00
char *GetName() {return(Name);}
2000-11-06 21:24:11 +01:00
CTile &GetTile(int No) {return(Tile[No]);}
2000-10-27 02:06:19 +02:00
private:
2000-11-07 21:38:19 +01:00
char Path[256],Name[256];
2000-10-27 20:18:30 +02:00
std::vector<CTile> Tile;
2000-11-06 21:24:11 +01:00
BOOL Loaded;
2000-10-27 02:06:19 +02:00
};
/*****************************************************************************/
#endif