1 /*
2 
3 Copyright (C) 2015-2018 Night Dive Studios, LLC.
4 
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 
18 */
19 /*
20  * $Source: r:/prj/cit/src/inc/RCS/bark.h $
21  * $Revision: 1.3 $
22  * $Author: tjs $
23  * $Date: 1994/08/02 13:56:04 $
24  *
25  * $Log: bark.h $
26  * Revision 1.3  1994/08/02  13:56:04  tjs
27  * Rescaled bark timeouts.
28  *
29  * Revision 1.2  1994/05/26  20:52:23  tjs
30  * Added null bark timeout
31  *
32  * Revision 1.1  1994/05/26  17:59:08  tjs
33  * Initial revision
34  *
35  *
36  *
37  */
38 
39 #include "mfdint.h" // for MFD struct
40 
41 #define MFD_BARK_FUNC 17
42 
43 #define NULL_BARK_TIMEOUT 3
44 
45 #define mfd_bark_string (*(int *)(&player_struct.mfd_func_data[MFD_BARK_FUNC][0]))
46 #define mfd_bark_speaker (*(ObjID *)(&player_struct.mfd_func_data[MFD_BARK_FUNC][sizeof(int)]))
47 #define mfd_bark_color (player_struct.mfd_func_data[MFD_BARK_FUNC][sizeof(int) + sizeof(ObjID)])
48 #define mfd_bark_mug (player_struct.mfd_func_data[MFD_BARK_FUNC][sizeof(int) + sizeof(ObjID) + sizeof(uchar)])
49 
50 extern void mfd_bark_expose(MFD *mfd, ubyte control);
51 extern void long_bark(ObjID speaker_id, uchar mug_id, int string_id, ubyte color);
52