23 #ifndef M4_ADV_R_ADV_PLAYER_H 24 #define M4_ADV_R_ADV_PLAYER_H 26 #include "common/serializer.h" 27 #include "m4/m4_types.h" 28 #include "m4/wscript/ws_machine.h" 32 #define MAX_PLYR_STRING_LEN 40 38 char verb[MAX_PLYR_STRING_LEN] = { 0 };
39 char noun[MAX_PLYR_STRING_LEN] = { 0 };
40 char prep[MAX_PLYR_STRING_LEN] = { 0 };
41 char object[MAX_PLYR_STRING_LEN];
42 char ws_asset_name[32] = { 0 };
43 char ws_shadow_name[32] = { 0 };
44 int16 walker_type = 0;
45 int16 shadow_type = 0;
48 int32 walk_off_edge_to_room = 0;
51 bool need_to_walk =
false;
54 bool ready_to_walk =
false;
56 bool waiting_for_walk =
false;
60 bool comm_allowed =
false;
65 int32 command_ready = 0;
68 bool walker_visible =
false;
71 bool look_around =
false;
74 bool been_here_before =
false;
77 bool walker_reload_palette =
false;
78 bool disable_hyperwalk =
false;
79 bool walker_loads_first =
false;
80 bool walker_in_this_scene =
false;
82 int32 walker_trigger = 0;
84 int32 walk_x = 0, walk_y = 0;
85 int32 walk_facing = 0;
87 int32 click_x = 0, click_y = 0;
95 int32 x = 0, y = 0, facing = 0;
96 int32
scale = 0, depth = 0;
97 int32 camera_x = 0, camera_y = 0;
102 bool player_said(
const char *w0,
const char *w1 =
nullptr,
const char *w2 =
nullptr);
103 bool player_said_any(
const char *w0,
const char *w1 =
nullptr,
const char *w2 =
nullptr,
104 const char *w3 =
nullptr,
const char *w4 =
nullptr,
const char *w5 =
nullptr,
const char *w6 =
nullptr,
105 const char *w7 =
nullptr,
const char *w8 =
nullptr,
const char *w9 =
nullptr);
107 void player_inform_walker_new_scale(int32 frontY, int32 backY, int32 frontS, int32 backS);
109 bool player_load_series(
const char *walkerName,
const char *shadowName,
bool load_palette);
110 void player_first_walk(int32 x1, int32 y1, int32 f1, int32 x2, int32 y2, int32 f2,
bool enable_commands_at_destination);
111 void player_set_defaults();
112 void player_noun_becomes_verb(int32 spriteNum);
114 void player_hotspot_walk_override(int32 x, int32 y, int32 facing = -1, int32 trigger = -1);
115 void player_hotspot_walk_override_just_face(int32 facing, int32 trigger = -1);
117 bool player_commands_allowed();
120 void adv_kill_digi_between_rooms(
bool true_or_false);
122 void player_set_facing_hotspot(
int trigger = -1);
123 void player_set_facing_at(
int x,
int y,
int trigger = -1);
124 int calc_facing(
int x,
int y);
Definition: ws_machine.h:153
Definition: serializer.h:79
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: adv_player.h:94
Definition: database.h:28
Definition: adv_player.h:34