Creating the map editor state
Now we're finally ready to actually tackle the state, in which all of the map editing is going to take place. Let us take a gander at its header file:
class State_MapEditor : public BaseState { public: ... void ResetSavePath(); void SetMapRedraw(bool l_redraw); void MainMenu(EventDetails* l_details); void MapEditorNew(EventDetails* l_details); void MapEditorLoad(EventDetails* l_details); void MapEditorSave(EventDetails* l_details); void MapEditorSaveAs(EventDetails* l_details); void MapEditorExit(EventDetails* l_details); void MapAction(const std::string& l_name); private: void SaveMap(const std::string& l_path); void LoadMap(const std::string& l_path); GUI_FileManager m_files; MapControls m_mapControls; std::string m_mapSavePath; bool m_mapRedraw; };
This State_MapEditor
class is going to be the frontier...