2000-12-14 17:38:34 +01:00
|
|
|
/***************************/
|
|
|
|
/*** 3d Tile Layer Class ***/
|
|
|
|
/***************************/
|
2000-12-14 17:01:49 +01:00
|
|
|
|
2001-03-09 00:02:47 +01:00
|
|
|
#ifndef __LAYER_TILE_3D_Hx__
|
|
|
|
#define __LAYER_TILE_3D_Hx__
|
2000-12-14 17:01:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2001-03-09 00:12:02 +01:00
|
|
|
class FontBank;
|
2000-12-14 17:38:34 +01:00
|
|
|
class CLayerTile3d : public CLayerTile
|
2000-12-14 17:01:49 +01:00
|
|
|
{
|
|
|
|
public:
|
2001-04-19 17:12:21 +02:00
|
|
|
CLayerTile3d(sLevelHdr *LevelHdr,sLayerHdr *Hdr);
|
2000-12-14 17:38:34 +01:00
|
|
|
~CLayerTile3d();
|
2000-12-14 17:01:49 +01:00
|
|
|
|
2001-03-09 00:02:47 +01:00
|
|
|
enum
|
|
|
|
{
|
2001-05-09 23:56:48 +02:00
|
|
|
TILE3D_WIDTH =16,
|
|
|
|
TILE3D_HEIGHT =16,
|
|
|
|
BLOCK_MULT =16,
|
2001-05-11 03:10:06 +02:00
|
|
|
SCREEN_TILE_ADJ_UP =1,
|
2001-05-09 23:56:48 +02:00
|
|
|
SCREEN_TILE_ADJ_LEFT =3,
|
|
|
|
SCREEN_TILE3D_WIDTH =40,
|
2001-05-11 03:10:06 +02:00
|
|
|
SCREEN_TILE3D_HEIGHT =18,
|
2001-05-09 23:56:48 +02:00
|
|
|
RENDER_X_PIX_OFS =-8,
|
|
|
|
RENDER_Y_PIX_OFS =0,
|
|
|
|
|
|
|
|
RENDER_X_OFS =-(BLOCK_MULT*15)-(SCREEN_TILE_ADJ_LEFT*BLOCK_MULT)+RENDER_X_PIX_OFS,
|
|
|
|
RENDER_Y_OFS =-(BLOCK_MULT*7)-(SCREEN_TILE_ADJ_UP*BLOCK_MULT)+RENDER_Y_PIX_OFS,
|
|
|
|
|
2001-03-09 00:02:47 +01:00
|
|
|
};
|
|
|
|
|
2001-02-22 15:55:13 +01:00
|
|
|
void init(DVECTOR &MapPos,int Shift);
|
2001-01-04 22:53:14 +01:00
|
|
|
void shutdown();
|
2001-03-09 00:02:47 +01:00
|
|
|
void think(DVECTOR &MapPos);
|
2001-01-04 22:53:14 +01:00
|
|
|
void render();
|
2000-12-14 17:01:49 +01:00
|
|
|
|
|
|
|
protected:
|
2001-04-19 01:04:03 +02:00
|
|
|
sTile3d *TileBank3d;
|
2001-03-08 00:20:09 +01:00
|
|
|
sTri *TriList;
|
|
|
|
sQuad *QuadList;
|
|
|
|
sVtx *VtxList;
|
2001-03-12 16:24:37 +01:00
|
|
|
DVECTOR RenderOfs;
|
2000-12-14 17:01:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
#endif
|