1 /** @file defs/mapinfo.h  MapInfo definition accessor.
2  *
3  * @authors Copyright © 2014 Daniel Swanson <danij@dengine.net>
4  *
5  * @par License
6  * GPL: http://www.gnu.org/licenses/gpl.html
7  *
8  * <small>This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by the
10  * Free Software Foundation; either version 2 of the License, or (at your
11  * option) any later version. This program is distributed in the hope that it
12  * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14  * Public License for more details. You should have received a copy of the GNU
15  * General Public License along with this program; if not, see:
16  * http://www.gnu.org/licenses</small>
17  */
18 
19 #ifndef LIBDOOMSDAY_DEFN_MAPINFO_H
20 #define LIBDOOMSDAY_DEFN_MAPINFO_H
21 
22 #include "definition.h"
23 #include <de/RecordAccessor>
24 
25 /// @todo These values should be tweaked a bit.
26 #define DEFAULT_FOG_START       0
27 #define DEFAULT_FOG_END         2100
28 #define DEFAULT_FOG_DENSITY     0.0001f
29 #define DEFAULT_FOG_COLOR_RED   138.0f/255
30 #define DEFAULT_FOG_COLOR_GREEN 138.0f/255
31 #define DEFAULT_FOG_COLOR_BLUE  138.0f/255
32 
33 namespace defn {
34 
35 /**
36  * Utility for handling mapinfo definitions.
37  */
38 class LIBDOOMSDAY_PUBLIC MapInfo : public Definition
39 {
40 public:
MapInfo()41     MapInfo()                     : Definition() {}
MapInfo(MapInfo const & other)42     MapInfo(MapInfo const &other) : Definition(other) {}
MapInfo(de::Record & d)43     MapInfo(de::Record &d)        : Definition(d) {}
MapInfo(de::Record const & d)44     MapInfo(de::Record const &d)  : Definition(d) {}
45 
46     void resetToDefaults();
47 };
48 
49 } // namespace defn
50 
51 #endif // LIBDOOMSDAY_DEFN_MAPINFO_H
52