2000-12-07 02:15:53 +01:00
|
|
|
/************************/
|
|
|
|
/*** Tile Layer Class ***/
|
|
|
|
/************************/
|
|
|
|
|
|
|
|
#ifndef __LAYER_TILE_H__
|
|
|
|
#define __LAYER_TILE_H__
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
class CLayerTile : public CLayer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum LAYER_TILE_SUBTYPE
|
|
|
|
{
|
|
|
|
LAYER_TILE_SUBTYPE_BACK=0,
|
|
|
|
LAYER_TILE_SUBTYPE_MID,
|
|
|
|
LAYER_TILE_SUBTYPE_ACTION,
|
|
|
|
LAYER_TILE_SUBTYPE_FORE,
|
|
|
|
LAYER_TILE_SUBTYPE_MAX
|
|
|
|
};
|
|
|
|
|
2000-12-07 16:56:20 +01:00
|
|
|
CLayerTile(sLayerHdr *Hdr,sTile *_TileList,sTri *_TriList,sQuad *_QuadList,sVtx *_VtxList);
|
|
|
|
~CLayerTile();
|
|
|
|
|
2000-12-07 02:15:53 +01:00
|
|
|
void init();
|
|
|
|
void shutdown();
|
|
|
|
void render();
|
|
|
|
void think(int _frames);
|
|
|
|
|
|
|
|
private:
|
2000-12-07 16:56:20 +01:00
|
|
|
sTile *TileList;
|
|
|
|
sTri *TriList;
|
|
|
|
sQuad *QuadList;
|
|
|
|
sVtx *VtxList;
|
|
|
|
sTileMapElem *Map;
|
2000-12-07 02:15:53 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
#endif
|