1 /* Copyright (C) 1996-1997 Aleksey Volynskov
2 * Copyright (C) 2011 Rambo
3 * Copyright (C) 2020 SovietPony
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, version 3 of the License ONLY.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
18 #ifndef FILES_H_INCLUDED
19 #define FILES_H_INCLUDED
23 #define SAVE_MAX 7
24 #define SAVE_MAXLEN 24
37 // Get sprite resource id.
38 // Sprite name has following format:
39 // (nnnn)('A'+s)('0'+d)[('A'+s)('0'+d)]
40 // Letter means animation frame
41 // A for first, B for second...
42 // Number means direction
43 // 0 = front
44 // 1 = left
45 // 2 = right
46 // Optional part means that this file can be used for differnt frame/direction.
47 // Note that if found FRONT direction for this frame than it UNCONDITIONALLY used.
48 // Note that search performed between markers S_START and S_END in order as paced in wad.
49 // int n[4] -- sprite name
50 // int s -- sprite frame
51 // int d -- sprite direction
52 // char *dir -- out flag "alternative used"
55 // void F_nextmus (char *s);
56 // void F_randmus (char *s);