SBSPSS/Utils/MapEdit/LayerPlatform.h

57 lines
1.3 KiB
C
Raw Normal View History

2001-03-29 19:59:01 +02:00
/*******************/
2001-03-26 23:29:09 +02:00
/*** Layer Platform ***/
2001-03-29 19:59:01 +02:00
/*******************/
2001-03-26 17:34:29 +02:00
2001-03-26 23:29:09 +02:00
#ifndef __LAYER_PLATFORM_HEADER__
#define __LAYER_PLATFORM_HEADER__
2001-03-26 17:34:29 +02:00
#include "LayerThing.h"
#include "Layer.h"
#include "MapEdit.h"
2001-04-07 23:05:33 +02:00
#include "GUILayerPlatform.h"
2001-03-26 17:34:29 +02:00
#include "Elem.h"
/*****************************************************************************/
2001-03-26 23:29:09 +02:00
class CLayerPlatform : public CLayerThing
2001-03-26 17:34:29 +02:00
{
public:
2001-04-07 23:05:33 +02:00
enum
{
MoveTypeLinear=0,
MoveTypeCirular
};
2001-03-26 23:29:09 +02:00
CLayerPlatform(sLayerDef &Def);
CLayerPlatform(CFile *File,int Version) {Load(File,Version);}
2001-03-26 17:34:29 +02:00
2001-03-29 19:59:01 +02:00
void InitLayer(sLayerDef &Def);
2001-03-26 17:34:29 +02:00
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-03-26 17:34:29 +02:00
void GUIInit(CCore *Core);
void GUIKill(CCore *Core);
void GUIUpdate(CCore *Core);
void GUIChanged(CCore *Core);
2001-03-29 19:59:01 +02:00
bool GUIReady();
2001-03-26 17:34:29 +02:00
2001-03-29 19:59:01 +02:00
void GUIThingDefClear();
2001-03-31 17:40:20 +02:00
void GUIThingUpdate(bool OnlySel=false);
void GUIThingPointUpdate(bool OnlySel=false);
2001-03-29 19:59:01 +02:00
2001-04-23 16:51:44 +02:00
void Export(CCore *Core,CExport &Exp);
void ExportThingData(CCore *Core,CExport &Exp,sLayerThing &ThisThing,sLayerThingData &OutThing);
2001-04-07 23:05:33 +02:00
2001-03-26 17:34:29 +02:00
protected:
2001-04-07 23:05:33 +02:00
void SetThingParams(sLayerThing &Thing);
CGUILayerPlatform GUIPlatform;
2001-03-26 17:34:29 +02:00
2001-05-05 23:18:12 +02:00
2001-03-26 17:34:29 +02:00
};
/*****************************************************************************/
#endif