SBSPSS/Utils/MapEdit/LayerHazard.h

50 lines
1.3 KiB
C
Raw Normal View History

2001-04-30 23:49:54 +02:00
/********************/
/*** Layer Hazard ***/
/********************/
2001-04-28 17:26:59 +02:00
2001-04-30 23:49:54 +02:00
#ifndef __LAYER_HAZARD_HEADER__
#define __LAYER_HAZARD_HEADER__
2001-04-28 17:26:59 +02:00
#include "LayerThing.h"
#include "Layer.h"
#include "MapEdit.h"
2001-04-30 23:49:54 +02:00
#include "GUILayerHazard.h"
2001-04-28 17:26:59 +02:00
#include "Elem.h"
/*****************************************************************************/
2001-04-30 23:49:54 +02:00
class CLayerHazard : public CLayerThing
2001-04-28 17:26:59 +02:00
{
public:
2001-04-30 23:49:54 +02:00
CLayerHazard(sLayerDef &Def);
CLayerHazard(CFile *File,int Version) {Load(File,Version);}
2001-04-28 17:26:59 +02:00
void InitLayer(sLayerDef &Def);
void InitSubView(CCore *Core);
2001-04-30 23:49:54 +02:00
void LoadDefThing(const char *Name,sLayerThing &ThisDef);
void LoadOldThing(CFile *File,sLayerThing &ThisThing);
2001-04-28 17:26:59 +02:00
void GUIInit(CCore *Core);
void GUIKill(CCore *Core);
void GUIUpdate(CCore *Core);
void GUIChanged(CCore *Core);
bool GUIReady();
void GUIThingDefClear();
void GUIThingUpdate(bool OnlySel=false);
void GUIThingPointUpdate(bool OnlySel=false);
2001-05-05 23:18:12 +02:00
void Export(CCore *Core,CExport &Exp);
void ExportThingData(CCore *Core,CExport &Exp,sLayerThing &ThisThing,sLayerThingData &OutThing);
2001-05-09 23:56:48 +02:00
virtual bool CanMirror(){return(true);}
virtual bool CanRotate(){return(true);}
2001-04-28 17:26:59 +02:00
protected:
2001-04-30 23:49:54 +02:00
CGUILayerHazard GUIHazard;
2001-04-28 17:26:59 +02:00
};
/*****************************************************************************/
#endif