23 #ifndef M4_ADV_R_ADV_HOTSPOT_H 24 #define M4_ADV_R_ADV_HOTSPOT_H 26 #include "m4/m4_types.h" 31 int32 ul_x, ul_y, lr_x, lr_y;
37 int32 vocabID, verbID;
49 const char *verb,
const char *noun,
50 int32 x1, int32 y1, int32 x2, int32 y2,
53 int32 walkto_x = 32767, int32 walkto_y = 32767, int32 facing = 0);
83 void hotspot_set_active(
HotSpotRec *head,
const char *name,
bool active_or_not);
84 void hotspot_set_active(
const char *name,
bool active_or_not);
85 void hotspot_set_active_xy(
HotSpotRec *head,
const char *name, int32 x, int32 y,
bool active_or_not);
86 void hotspot_set_active_xy(
const char *name, int32 x, int32 y,
bool active_or_not);
87 #define kernel_flip_hotspot(aa,bb) (hotspot_set_active(currentSceneDef.hotspots,aa,bb)) 88 #define kernel_flip_hotspot_xy(aa,bb,xx,yy) (hotspot_set_active_xy(currentSceneDef.hotspots,aa,xx,yy,bb)) 89 #define kernel_flip_hotspot_loc(aa,bb,xx,yy) (hotspot_set_active_xy(currentSceneDef.hotspots,aa,xx,yy,bb)) 91 void hotspot_new_sprite(
HotSpotRec *h,
const char *verb);
92 void hotspot_newVerb(
HotSpotRec *h,
const char *verb);
93 void hotspot_newVocab(
HotSpotRec *h,
const char *vocab);
94 void hotspot_newPrep(
HotSpotRec *h,
const char *prep);
104 void hotspot_restore_all();
105 void hotspot_hide_all();
106 void hotspot_unhide_and_dump();
HotSpotRec * hotspot_which(HotSpotRec *head, int x, int y)
HotSpotRec * hotspot_add(HotSpotRec *head, HotSpotRec *h, bool new_head)
HotSpotRec * hotspot_new(int x1, int y1, int x2, int y2)
HotSpotRec * hotspot_delete_record(HotSpotRec *head, HotSpotRec *h)
Definition: database.h:28
Definition: adv_hotspot.h:30
HotSpotRec * hotspot_unlink(HotSpotRec *head, HotSpotRec *h)