This commit is contained in:
parent
17b863e4be
commit
9be320207d
12 changed files with 308 additions and 202 deletions
|
@ -23,47 +23,45 @@ public:
|
|||
CCore();
|
||||
~CCore();
|
||||
|
||||
void Init(CMapEditView *Wnd);
|
||||
void Render();
|
||||
void Init();
|
||||
void NewMap();
|
||||
void OpenMap();
|
||||
void Render(CMapEditView *View);
|
||||
|
||||
// Control
|
||||
void LButtonControl(UINT nFlags, CPoint &point,BOOL DownFlag);
|
||||
void MButtonControl(UINT nFlags, CPoint &point,BOOL DownFlag);
|
||||
void RButtonControl(UINT nFlags, CPoint &point,BOOL DownFlag);
|
||||
void MouseWheel(UINT nFlags, short zDelta, CPoint &pt);
|
||||
void MouseMove(UINT nFlags, CPoint &point);
|
||||
void LButtonControl(CMapEditView *View,UINT nFlags, CPoint &point,BOOL DownFlag);
|
||||
void MButtonControl(CMapEditView *View,UINT nFlags, CPoint &point,BOOL DownFlag);
|
||||
void RButtonControl(CMapEditView *View,UINT nFlags, CPoint &point,BOOL DownFlag);
|
||||
void MouseWheel(CMapEditView *View,UINT nFlags, short zDelta, CPoint &pt);
|
||||
void MouseMove(CMapEditView *View,UINT nFlags, CPoint &point);
|
||||
|
||||
// TileBank
|
||||
void UpdateTileView(BOOL ViewFlag);
|
||||
BOOL GetTileView() {return(TileViewFlag);}
|
||||
void ToggleTileView() {UpdateTileView(!TileViewFlag);}
|
||||
void UpdateTileView(CMapEditView *View,BOOL ViewFlag);
|
||||
void ToggleTileView(CMapEditView *View);
|
||||
BOOL GetTileView() {return(TileViewFlag);}
|
||||
|
||||
GLint GetTile(int Bank,int TileNo);
|
||||
CTile GetTile(int Bank,int TileNo) {return(TileBank.GetTile(Bank,TileNo));}
|
||||
|
||||
// Layers
|
||||
void UpdateLayerBar(BOOL ViewFlag);
|
||||
BOOL GetLayerViewFlag() {return(LayerViewFlag);}
|
||||
void ToggleLayerView() {UpdateLayerBar(!LayerViewFlag);}
|
||||
void UpdateLayerBar(CMapEditView *View,BOOL ViewFlag);
|
||||
void ToggleLayerView(CMapEditView *View);
|
||||
BOOL GetLayerViewFlag() {return(LayerViewFlag);}
|
||||
|
||||
void SetActiveLayer(int Layer);
|
||||
int GetActiveLayer() {return(ActiveLayer);}
|
||||
CLayer *GetLayer(int i) {return(Layers[i]);}
|
||||
void SetActiveLayer(int Layer);
|
||||
int GetActiveLayer() {return(ActiveLayer);}
|
||||
CLayer *GetLayer(int i) {return(Layers[i]);}
|
||||
|
||||
// Tex Cache
|
||||
CTexCache &GetTexCache() {return(TexCache);}
|
||||
CTexCache &GetTexCache() {return(TexCache);}
|
||||
|
||||
// Misc
|
||||
void UpdateAll();
|
||||
void UpdateView(Vec Ofs=Vec(0,0,0));
|
||||
|
||||
Vec &GetCam();
|
||||
void SetCursorPos(CPoint &Pos) {CursorPos=Pos;}
|
||||
CPoint &GetCursorPos() {return(CursorPos);}
|
||||
CMapEditView *GetParentWindow() {return(ParentWindow);}
|
||||
void Redraw(BOOL f=TRUE);
|
||||
void UpdateAll(CMapEditView *View);
|
||||
void UpdateView(CMapEditView *View,Vec Ofs=Vec(0,0,0));
|
||||
|
||||
Vec &GetCam();
|
||||
void SetCursorPos(CPoint &Pos) {CursorPos=Pos;}
|
||||
CPoint &GetCursorPos() {return(CursorPos);}
|
||||
private:
|
||||
CMapEditView *ParentWindow;
|
||||
CPoint CurrentMousePos,LastMousePos;
|
||||
CPoint CursorPos,LastCursorPos;
|
||||
Vec MapCam,TileCam;
|
||||
|
@ -71,14 +69,14 @@ private:
|
|||
CLayer *Layers[LAYER_TYPE_MAX];
|
||||
int ActiveLayer;
|
||||
|
||||
std::vector<CTileSet> TileSet;
|
||||
// std::vector<CTileSet> TileSet;
|
||||
CTileBank TileBank;
|
||||
CTexCache TexCache;
|
||||
|
||||
BOOL RenderFlag;
|
||||
BOOL TileViewFlag;
|
||||
BOOL LayerViewFlag;
|
||||
|
||||
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue