Debian Codegraph @

Descent3/levelgoal_external.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
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 #ifndef LEVELGOALEXTERNAL_H_
20 #define LEVELGOALEXTERNAL_H_
21
22 #define LF_AUTO_END_LEVEL 0x01
23 #define LF_ALL_PRIMARIES_DONE 0x02
24
25 // Level Item Types
26 #define LIT_TERRAIN_CELL 0
27 #define LIT_INTERNAL_ROOM 1
28 #define LIT_OBJECT 2
29 #define LIT_TRIGGER 3
30 #define LIT_ANY_MINE 4
31
32 // Level Item Operations
33 #define LO_SET_SPECIFIED 0
34 #define LO_GET_SPECIFIED 1
35 #define LO_CLEAR_SPECIFIED 2
36
37 // Level Goal Flags
38 #define LGF_BLANK1 0x00000001
39 #define LGF_SECONDARY_GOAL 0x00000002
40 #define LGF_ENABLED 0x00000004
41 #define LGF_COMPLETED 0x00000008
42 #define LGF_TELCOM_LISTS 0x00000010
43 #define LGF_GB_DOESNT_KNOW_LOC 0x00000020
44 #define LGF_NOT_LOC_BASED 0x00000040
45 #define LGF_FAILED 0x00000080
46 #define LGF_COMP_ACTIVATE 0x00000100
47 #define LGF_COMP_ENTER 0x00000200
48 #define LGF_COMP_DESTROY 0x00000400
49 #define LGF_COMP_PLAYER_WEAPON 0x00000800
50 #define LGF_COMP_PLAYER 0x00001000
51 #define LGF_COMP_DALLAS 0x00002000
52
53 #define LGF_COMP_MASK \
54 (LGF_COMP_ACTIVATE | LGF_COMP_ENTER | LGF_COMP_DESTROY | LGF_COMP_PLAYER_WEAPON | LGF_COMP_PLAYER | LGF_COMP_DALLAS)
55
56 #define LGF_COMP_TERRAIN_MASK (LGF_COMP_ENTER | LGF_COMP_DALLAS)
57 #define LGF_COMP_ROOM_MASK (LGF_COMP_ENTER | LGF_COMP_DALLAS)
58 #define LGF_COMP_OBJECT_MASK (LGF_COMP_DESTROY | LGF_COMP_PLAYER_WEAPON | LGF_COMP_PLAYER | LGF_COMP_DALLAS)
59 #define LGF_COMP_TRIGGER_MASK (LGF_COMP_ACTIVATE | LGF_COMP_DALLAS)
60 #define LGF_COMP_MINE_MASK (LGF_COMP_ENTER | LGF_COMP_DALLAS)
61
62 #define MAX_GOAL_ITEMS 12
63 #define MAX_LEVEL_GOALS 32
64
65 #define MAX_GOAL_LISTS 4
66
67 #endif