From f732cdaf7374fde737b503ec6966fb8cd8f4c32b Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 17 Mar 2015 23:53:55 -0400 Subject: Map editor can now define actions to occur when the player goes off a specified edge of the map --- tools/mapedit/src/frame.h | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) (limited to 'tools/mapedit/src/frame.h') diff --git a/tools/mapedit/src/frame.h b/tools/mapedit/src/frame.h index d201e86..dd8424c 100644 --- a/tools/mapedit/src/frame.h +++ b/tools/mapedit/src/frame.h @@ -7,27 +7,25 @@ #include #endif -#include "map.h" -#include "widget.h" -#include "tile_widget.h" #include #include #include #include #include -#include "undo.h" -class MapPtrCtr : public wxTreeItemData { - public: - Map* map; - - MapPtrCtr(Map* map) : map(map) {} -}; +class Map; +class MapeditWidget; +class TileWidget; +class Undoable; +class UndoableTextBox; + +#include "world.h" class MapeditFrame : public wxFrame { public: MapeditFrame() {} - MapeditFrame(std::unique_ptr world); + MapeditFrame(World* world); + ~MapeditFrame() { delete world; } MapeditWidget* GetMapEditor(); void SetIsAddingEntity(bool isAddingEntity); @@ -39,7 +37,7 @@ class MapeditFrame : public wxFrame { std::list::iterator closer; - static void LaunchWindow(std::unique_ptr world); + static void LaunchWindow(World* world); void populateMapTree(wxTreeItemId node, std::list> maps); void SelectMap(Map* map); wxTreeItemId MoveTreeNode(wxTreeItemId toCopy, wxTreeItemId newParent); @@ -68,8 +66,16 @@ class MapeditFrame : public wxFrame { void OnCancelSetStartpos(wxCommandEvent& event); void OnOneMovingSash(wxSplitterEvent& event); void OnThreeMovingSash(wxSplitterEvent& event); + void OnSetLeftmapType(wxCommandEvent& event); + void OnSetLeftmapMap(wxCommandEvent& event); + void OnSetRightmapType(wxCommandEvent& event); + void OnSetRightmapMap(wxCommandEvent& event); + void OnSetUpmapType(wxCommandEvent& event); + void OnSetUpmapMap(wxCommandEvent& event); + void OnSetDownmapType(wxCommandEvent& event); + void OnSetDownmapMap(wxCommandEvent& event); - std::unique_ptr world; + World* world; Map* currentMap; MapeditWidget* mapEditor; -- cgit 1.4.1