1 /**\file
2  *\section License
3  * License: GPL
4  * Online License Link: http://www.gnu.org/licenses/gpl.html
5  *
6  *\author Copyright © 2003-2017 Jaakko Keränen <jaakko.keranen@iki.fi>
7  *\author Copyright © 2006-2013 Daniel Swanson <danij@dengine.net>
8  *\author Copyright © 1993-1996 by id Software, Inc.
9  *
10  * 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
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin St, Fifth Floor,
23  * Boston, MA  02110-1301  USA
24  */
25 
26 /**
27  * d_think.h: MapObj data.
28  *
29  * Map Objects or mobjs are actors, entities, thinker, take-your-pick...
30  * anything that moves, acts, or suffers state changes of more or less
31  * violent nature.
32  */
33 
34 #ifndef __D_THINK__
35 #define __D_THINK__
36 
37 #ifndef __JDOOM64__
38 #  error "Using jDoom64 headers without __JDOOM64__"
39 #endif
40 
41 /**
42  * Experimental stuff.
43  * To compile this as "ANSI C with classes" we will need to handle the
44  * various action functions cleanly.
45  */
46 typedef void    (*actionf_v)  ();
47 typedef void    (*actionf_p1) (void *);
48 typedef void    (*actionf_p2) (void *, void *);
49 
50 #define NOPFUNC             ((actionf_v) (-1))
51 
52 typedef union {
53     actionf_p1      acp1;
54     actionf_v       acv;
55     actionf_p2      acp2;
56 } actionf_t;
57 
58 #endif
59