ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/rmg.h
(Generate patch)

Comparing deliantra/server/include/rmg.h (file contents):
Revision 1.2 by root, Sun Aug 22 20:36:37 2010 UTC vs.
Revision 1.9 by root, Sat Nov 17 23:40:01 2018 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team
4 * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 5 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2001 Mark Wedel & Crossfire Development Team 6 * Copyright (©) 2001 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992 Frank Tore Johansen 7 * Copyright (©) 1992 Frank Tore Johansen
7 * 8 *
8 * Deliantra is free software: you can redistribute it and/or modify it under 9 * Deliantra is free software: you can redistribute it and/or modify it under
9 * the terms of the Affero GNU General Public License as published by the 10 * the terms of the Affero GNU General Public License as published by the
10 * Free Software Foundation, either version 3 of the License, or (at your 11 * Free Software Foundation, either version 3 of the License, or (at your
11 * option) any later version. 12 * option) any later version.
12 * 13 *
13 * This program is distributed in the hope that it will be useful, 14 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details. 17 * GNU General Public License for more details.
17 * 18 *
18 * You should have received a copy of the Affero GNU General Public License 19 * You should have received a copy of the Affero GNU General Public License
19 * and the GNU General Public License along with this program. If not, see 20 * and the GNU General Public License along with this program. If not, see
20 * <http://www.gnu.org/licenses/>. 21 * <http://www.gnu.org/licenses/>.
21 * 22 *
22 * The authors can be reached via e-mail to <support@deliantra.net> 23 * The authors can be reached via e-mail to <support@deliantra.net>
23 */ 24 */
24 25
25#ifndef RMG_H 26#ifndef RMG_H
26#define RMG_H 27#define RMG_H
48 HV *hv; 49 HV *hv;
49 50
50 shstr_tmp as_shstr () const; 51 shstr_tmp as_shstr () const;
51 52
52 // fetch something from the options hash 53 // fetch something from the options hash
53 SV *get_sv (const char *option) const; 54 SV *opt_sv (const char *option) const; // avoid clashing with perl's get_sv macro
54 const_utf8_string get_str (const char *option, const_utf8_string fallback = "") const; 55 const_utf8_string get_str (const char *option, const_utf8_string fallback = "") const;
55 IV get_iv (const char *option, IV fallback = 0) const; 56 IV get_iv (const char *option, IV fallback = 0) const;
56 UV get_uv (const char *option, UV fallback = 0) const; 57 UV get_uv (const char *option, UV fallback = 0) const;
57 NV get_nv (const char *option, NV fallback = 0) const; 58 NV get_nv (const char *option, NV fallback = 0) const;
58 59
113 RMOPT_BOTTOM_C = 4, 114 RMOPT_BOTTOM_C = 4,
114 RMOPT_BOTTOM_R = 8, 115 RMOPT_BOTTOM_R = 8,
115 RMOPT_IRR_SPACE = 16, 116 RMOPT_IRR_SPACE = 16,
116 RMOPT_WALL_OFF = 32, 117 RMOPT_WALL_OFF = 32,
117 RMOPT_WALLS_ONLY = 64, 118 RMOPT_WALLS_ONLY = 64,
118 RMOPT_NO_DOORS = 256, /* Place walls insead of doors. Produces broken map. */ 119 RMOPT_NO_DOORS = 256, /* Place walls insead of doors. Produces broken map. */
119}; 120};
120 121
121/* symmetry definitions--used in this file AND in treasure.c: 122/* symmetry definitions--used in this file AND in treasure.c:
122the numerical values matter so don't change them. */ 123the numerical values matter so don't change them. */
123enum { 124enum {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines