SBSPSS/Utils/MapEdit/LayerCollision.h

51 lines
1.2 KiB
C
Raw Normal View History

2001-01-23 22:53:48 +01:00
/***********************/
/*** Layer Collision ***/
/***********************/
2001-01-22 18:01:20 +01:00
2001-01-23 22:53:48 +01:00
#ifndef __LAYER_COLLISION_HEADER__
#define __LAYER_COLLISION_HEADER__
2001-01-22 18:01:20 +01:00
#include "Layer.h"
2001-02-20 16:57:03 +01:00
#include "MapEdit.h"
2001-03-13 22:00:34 +01:00
#include "GUILayerCollision.h"
2001-01-22 18:01:20 +01:00
/*****************************************************************************/
class CCore;
2001-01-23 22:53:48 +01:00
class CLayerCollision : public CLayerTile
2001-01-22 18:01:20 +01:00
{
public:
2001-03-26 23:29:09 +02:00
// CLayerCollision(int Type,int SubType,int Width,int Height);
CLayerCollision(sLayerDef &Def);
CLayerCollision(CFile *File,int Version) {Load(File,Version);}
2001-01-23 22:53:48 +01:00
~CLayerCollision();
2001-01-22 18:01:20 +01:00
2001-01-23 22:53:48 +01:00
int GetType() {return(LAYER_TYPE_COLLISION);}
2001-03-05 21:49:46 +01:00
void InitSubView(CCore *Core);
2001-01-22 18:01:20 +01:00
2001-03-01 18:28:20 +01:00
void Render(CCore *Core,Vector3 &CamPos,bool Is3d);
2001-02-20 16:57:03 +01:00
2001-02-09 22:17:01 +01:00
void GUIInit(CCore *Core);
void GUIKill(CCore *Core);
void GUIUpdate(CCore *Core);
void GUIChanged(CCore *Core);
2001-01-22 18:01:20 +01:00
2001-01-23 22:53:48 +01:00
void Load(CFile *File,int Version);
2001-01-22 18:01:20 +01:00
void Save(CFile *File);
void Export(CCore *Core,CExport &Exp);
2001-03-01 18:28:20 +01:00
bool Command(int CmdMsg,CCore *Core,int Param0,int Param1);
2001-01-22 18:01:20 +01:00
// Functions
void DeleteSet(int Set);
void RemapSet(int OrigSet,int NewSet);
protected:
2001-03-05 21:49:46 +01:00
void InitTileBank();
2001-02-20 16:57:03 +01:00
2001-03-13 22:00:34 +01:00
GUILayerCollision GUI;
2001-02-09 22:17:01 +01:00
2001-01-22 18:01:20 +01:00
};
/*****************************************************************************/
#endif