Debian Codegraph @

src/EditorMap.h

raw
1 /**
2 * Map - group of screen references (dink.dat)
3
4 * Copyright (C) 1997, 1998, 1999, 2002, 2003 Seth A. Robinson
5 * Copyright (C) 2005, 2007, 2008, 2009, 2014, 2015 Sylvain Beucler
6
7 * This file is part of GNU FreeDink
8
9 * GNU FreeDink is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 3 of the
12 * License, or (at your option) any later version.
13
14 * GNU FreeDink is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see
21 * <http://www.gnu.org/licenses/>.
22 */
23
24 #ifndef _MAP_H
25 #define _MAP_H
26
27 #include "editor_screen.h"
28 #include <string>
29
30 using namespace std;
31
32 class EditorMap
33 {
34 public:
35 std::string dink_dat;
36 std::string map_dat;
37
38 EditorMap(string dink_dat = "dink.dat", string map_dat = "map.dat");
39 bool load();
40 void save();
41
42 int loc[768+1]; // screen index in map.dat
43 struct editor_screen* ts_loc_mem[768+1]; // pre-loaded screen for testsuite
44 int music[768+1];
45 int indoor[768+1];
46 };
47
48 #endif