SBSPSS/source/level/level.h

46 lines
958 B
C
Raw Normal View History

2000-12-06 23:52:00 +01:00
/*******************/
/*** Level Class ***/
/*******************/
#ifndef __LEVEL_LEVEL_H__
#define __LEVEL_LEVEL_H__
2001-01-16 17:20:45 +01:00
#include "system\global.h"
2001-02-02 20:16:49 +01:00
#include "level/layertile.h"
#include "level/layercollision.h"
2000-12-06 23:52:00 +01:00
/*****************************************************************************/
2001-02-02 20:16:49 +01:00
class CLayer;
2000-12-06 23:52:00 +01:00
class CLevel
{
public:
2000-12-07 16:56:20 +01:00
CLevel();
virtual ~CLevel();
2000-12-06 23:52:00 +01:00
2000-12-07 16:56:20 +01:00
// Scene Handlers
void init();
void shutdown();
void render();
void think(int _frames);
2001-02-06 18:15:28 +01:00
void setCameraCentre(DVECTOR _pos) {MapPos=_pos;}
static DVECTOR getCameraPos() {return MapPos;}
CLayerCollision *getCollisionLayer() {return CollisionLayer;}
2001-01-15 23:19:34 +01:00
2000-12-06 23:52:00 +01:00
private:
2000-12-08 15:48:50 +01:00
void initLayers();
2000-12-07 16:56:20 +01:00
2001-01-16 17:20:45 +01:00
sLvlHdr *LevelHdr;
2001-02-06 16:50:59 +01:00
sTileBankHdr *TileBankHdr;
2001-01-16 17:20:45 +01:00
static DVECTOR MapPos;
2000-12-12 21:56:51 +01:00
2000-12-08 15:48:50 +01:00
// Tile Layers
2001-02-02 20:16:49 +01:00
CLayerTile *TileLayers[CLayerTile::LAYER_TILE_TYPE_MAX];
// Collision
CLayerCollision *CollisionLayer;
2000-12-06 23:52:00 +01:00
};
/*****************************************************************************/
#endif