OSDN Git Service

日本語版
[nazghul-jp/nazghul-jp.git] / src / mmode.h
1 //
2 // nazghul - an old-school RPG engine
3 // Copyright (C) 2002, 2003 Gordon McNutt
4 //
5 // This program is free software; you can redistribute it and/or modify it
6 // under the terms of the GNU General Public License as published by the Free
7 // Software Foundation; either version 2 of the License, or (at your option)
8 // any later version.
9 //
10 // This program is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13 // more details.
14 //
15 // You should have received a copy of the GNU General Public License along with
16 // this program; if not, write to the Free Foundation, Inc., 59 Temple Place,
17 // Suite 330, Boston, MA 02111-1307 USA
18 //
19 // Gordon McNutt
20 // gmcnutt@users.sourceforge.net
21 //
22
23 #ifndef mmode_h
24 #define mmode_h
25
26 #include "macros.h"
27
28 BEGIN_DECL
29
30 struct mmode {
31         char *tag;
32         char *name;  /* for UI selection */
33         int index;   /* into passability table (see ptable.h) */
34 };
35
36 #define mmode_name(mmode) ((mmode)->name)
37 #define mmode_index(mmode) ((mmode)->index)
38
39 extern struct mmode * mmode_new(char *tag, char *name, int index);
40 extern void mmode_del(struct mmode *mmode);
41
42 END_DECL
43
44 #endif