1 /** @file doomv9mapstatereader.h Doom ver 1.9 saved game map state reader. 2 * 3 * @authors Copyright © 2003-2017 Jaakko Keränen <jaakko.keranen@iki.fi> 4 * @authors Copyright © 2006-2013 Daniel Swanson <danij@dengine.net> 5 * @authors Copyright © 1993-1996 by id Software, Inc. 6 * 7 * @par License 8 * GPL: http://www.gnu.org/licenses/gpl.html 9 * 10 * <small>This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by the 12 * Free Software Foundation; either version 2 of the License, or (at your 13 * option) any later version. This program is distributed in the hope that it 14 * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty 15 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 16 * Public License for more details. You should have received a copy of the GNU 17 * General Public License along with this program; if not, write to the Free 18 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 19 * 02110-1301 USA</small> 20 */ 21 22 #ifndef LIBDOOM_DOOMV9_MAPSTATEREADER 23 #define LIBDOOM_DOOMV9_MAPSTATEREADER 24 25 #ifndef __JDOOM__ 26 # error "Using jDoom headers without __JDOOM__" 27 #endif 28 29 #include <doomsday/GameStateFolder> 30 31 /** 32 * Doom ver 1.9 saved game map state reader. 33 * 34 * @ingroup libdoom 35 */ 36 class DoomV9MapStateReader : public GameStateFolder::MapStateReader 37 { 38 public: 39 DoomV9MapStateReader(GameStateFolder const &session); 40 ~DoomV9MapStateReader(); 41 42 void read(de::String const &mapUriStr); 43 44 thinker_t *thinkerForPrivateId(de::Id::Type id) const override; 45 46 private: 47 DENG2_PRIVATE(d) 48 }; 49 50 #endif // LIBDOOM_DOOMV9_MAPSTATEREADER 51