1 /*
2 BStone: A Source port of
3 Blake Stone: Aliens of Gold and Blake Stone: Planet Strike
4 
5 Copyright (c) 1992-2013 Apogee Entertainment, LLC
6 Copyright (c) 2013-2015 Boris I. Bendovsky (bibendovsky@hotmail.com)
7 
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12 
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the
20 Free Software Foundation, Inc.,
21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 */
23 
24 
25 #ifndef BSTONE_AN_CODES_INCLUDED
26 #define BSTONE_AN_CODES_INCLUDED
27 
28 // --------------------------------------------------------------------------
29 //
30 // ANIM CODES - DOCS
31 //
32 // --------------------------------------------------------------------------
33 //
34 //   FI - Fade In the current frame (Last Frame grabbed)
35 //   FO - Fade Out the current frame (Last Frame grabbed)
36 //   FB - Fade In with rate (a numeral value should follow in the script)
37 //        ** MUST be a divisor of 64
38 //   FE - Fade Out with rate (a numeral value should follow in the script)
39 //        ** MUST be a divisor of 64
40 //   SD - Play sounds (a numeral value should follow in the script)
41 //   GR - Graphic Page (full screen)
42 //
43 //   PA - Pause/Delay 'xxxxxx' number of VBLs
44 //
45 //
46 //
47 //
48 //
49 
50 // --------------------------------------------------------------------------
51 //
52 // MACROS
53 //
54 // --------------------------------------------------------------------------
55 
56 
57 #define MV_CNVT_CODE(c1, c2) ((uint16_t)((c1) | (c2 << 8)))
58 
59 #define AN_PAUSE MV_CNVT_CODE('P', 'A')
60 #define AN_SOUND MV_CNVT_CODE('S', 'D')
61 #define AN_MUSIC MV_CNVT_CODE('M', 'U')
62 #define AN_PAGE MV_CNVT_CODE('G', 'R')
63 #define AN_FADE_IN_FRAME MV_CNVT_CODE('F', 'I')
64 #define AN_FADE_OUT_FRAME MV_CNVT_CODE('F', 'O')
65 #define AN_FADE_IN MV_CNVT_CODE('F', 'B')
66 #define AN_FADE_OUT MV_CNVT_CODE('F', 'E')
67 #define AN_PALETTE MV_CNVT_CODE('P', 'L')
68 
69 #define AN_PRELOAD_BEGIN MV_CNVT_CODE('L', 'B')
70 #define AN_PRELOAD_END MV_CNVT_CODE('L', 'E')
71 
72 #define AN_END_OF_ANIM MV_CNVT_CODE('X', 'X')
73 
74 
75 #endif // BSTONE_AN_CODES_INCLUDED
76