Debian Codegraph @

common/main/escort.h

raw
1 /*
2 * This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
3 * It is copyright by its individual contributors, as recorded in the
4 * project's Git history. See COPYING.txt at the top level for license
5 * terms and a link to the Git history.
6 */
7 /*
8 *
9 * Header for escort.c
10 *
11 */
12
13 #pragma once
14
15 #include "maths.h"
16 #include "fwd-object.h"
17 #include "fwd-vclip.h"
18
19 #ifdef DXX_BUILD_DESCENT
20 #if DXX_BUILD_DESCENT == 2
21 #include "fwd-robot.h"
22 #endif
23
24 namespace dsx {
25 #if DXX_BUILD_DESCENT == 1
26 static inline void detect_escort_goal_accomplished(const vmobjptridx_t &)
27 {
28 }
29 #elif DXX_BUILD_DESCENT == 2
30 #define GUIDEBOT_NAME_LEN 9
31 extern void change_guidebot_name(void);
32 extern void do_escort_menu(void);
33 void detect_escort_goal_accomplished(vmobjptridx_t index);
34 void detect_escort_goal_fuelcen_accomplished();
35 void set_escort_special_goal(d_unique_buddy_state &BuddyState, int key);
36 void init_buddy_for_level(void);
37 void invalidate_escort_goal(d_unique_buddy_state &);
38 #if DXX_USE_MULTIPLAYER
39 struct netgame_info;
40 unsigned check_warn_local_player_can_control_guidebot(fvcobjptr &vcobjptr, const d_unique_buddy_state &, const netgame_info &Netgame);
41 #endif
42
43 enum escort_goal_t : uint8_t
44 {
45 ESCORT_GOAL_UNSPECIFIED = UINT8_MAX,
46 ESCORT_GOAL_BLUE_KEY = 1,
47 ESCORT_GOAL_GOLD_KEY = 2,
48 ESCORT_GOAL_RED_KEY = 3,
49 ESCORT_GOAL_CONTROLCEN = 4,
50 ESCORT_GOAL_EXIT = 5,
51
52 // Custom escort goals.
53 ESCORT_GOAL_ENERGY = 6,
54 ESCORT_GOAL_ENERGYCEN = 7,
55 ESCORT_GOAL_SHIELD = 8,
56 ESCORT_GOAL_POWERUP = 9,
57 ESCORT_GOAL_ROBOT = 10,
58 ESCORT_GOAL_HOSTAGE = 11,
59 ESCORT_GOAL_PLAYER_SPEW = 12,
60 ESCORT_GOAL_SCRAM = 13,
61 ESCORT_GOAL_BOSS = 15,
62 ESCORT_GOAL_MARKER1 = 16,
63 ESCORT_GOAL_MARKER2 = 17,
64 ESCORT_GOAL_MARKER3 = 18,
65 ESCORT_GOAL_MARKER4 = 19,
66 ESCORT_GOAL_MARKER5 = 20,
67 ESCORT_GOAL_MARKER6 = 21,
68 ESCORT_GOAL_MARKER7 = 22,
69 ESCORT_GOAL_MARKER8 = 23,
70 ESCORT_GOAL_MARKER9 = 24,
71 };
72 #endif
73 }
74 #endif