SBSPSS/Utils/MapEdit/ElemStore.h

71 lines
2.1 KiB
C
Raw Normal View History

2001-03-13 19:01:46 +01:00
/***********************/
/*** ElemSotre Stuph ***/
/***********************/
#ifndef __ELEMSTORE_HEADER__
#define __ELEMSTORE_HEADER__
#include "stdafx.h"
#include <Vector3.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <Vector>
#include <gfname.hpp>
#include "Layer.h"
#include "TexCache.h"
#include "Elem.h"
#include "MapEdit.h"
2001-03-13 22:00:34 +01:00
#include "GUIElemList.h"
2001-03-13 19:01:46 +01:00
/*****************************************************************************/
class CCore;
class CElemStore : public CLayer, public CElemBank
{
public:
CElemStore();
~CElemStore();
// Overloads
2001-03-13 22:00:34 +01:00
virtual int GetType() {return(0);}
2001-03-13 19:01:46 +01:00
2001-03-13 22:00:34 +01:00
virtual void Render(CCore *Core,Vector3 &CamPos,bool Is3d);
virtual void RenderGrid(CCore *Core,Vector3 &CamPos,bool Active){}
virtual void RenderSelection(CCore *Core,Vector3 &ThisCam){};
virtual void RenderCursor(CCore *Core,Vector3 &CamPos,bool Is3d);
virtual void FindCursorPos(CCore *Core,Vector3 &CamPos,CPoint &MousePos){}
2001-03-13 19:01:46 +01:00
2001-03-13 22:00:34 +01:00
virtual void GUIInit(CCore *Core);
virtual void GUIKill(CCore *Core);
virtual void GUIUpdate(CCore *Core);
virtual void GUIChanged(CCore *Core);
2001-03-13 19:01:46 +01:00
2001-03-13 22:00:34 +01:00
virtual void Load(CFile *File,int Version);
virtual void Save(CFile *File);
2001-03-13 19:01:46 +01:00
2001-03-13 22:00:34 +01:00
virtual void Export(CCore *Core,CExport &Exp){};
2001-03-13 19:01:46 +01:00
2001-03-13 22:00:34 +01:00
virtual bool LButtonControl(CCore *Core,UINT nFlags, CPoint &CursorPos,bool DownFlag);
virtual bool RButtonControl(CCore *Core,UINT nFlags, CPoint &CursorPos,bool DownFlag);
virtual bool MouseMove(CCore *Core,UINT nFlags, CPoint &CursorPos);
virtual bool Command(int CmdMsg,CCore *Core,int Param0=0,int Param1=0);
2001-03-13 19:01:46 +01:00
// ElemSet Thruput
const char *GetSetName(int Set) {return(SetList[Set].GetName());}
const char *GetSetFilename(int Set) {return(SetList[Set].GetFilename());}
CElem &GetElem(int Set,int Elem) {return(SetList[Set].GetElem(Elem));}
void RenderElem(int Set,int Elem,int Flags,bool Is3d);
// Local
2001-03-13 22:00:34 +01:00
virtual bool CanClose() {return(true);}
2001-03-13 19:01:46 +01:00
protected:
2001-03-13 22:00:34 +01:00
int CurrentSet;
bool LoadFlag;
int CursorPos;
CGUIElemList GUIElemList;
2001-03-13 19:01:46 +01:00
};
/*****************************************************************************/
#endif