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);
83void hotspot_set_active(
HotSpotRec *head,
const char *name,
bool active_or_not);
84void hotspot_set_active(
const char *name,
bool active_or_not);
85void hotspot_set_active_xy(
HotSpotRec *head,
const char *name, int32 x, int32 y,
bool active_or_not);
86void 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))
91void hotspot_new_sprite(
HotSpotRec *h,
const char *verb);
92void hotspot_newVerb(
HotSpotRec *h,
const char *verb);
93void hotspot_newVocab(
HotSpotRec *h,
const char *vocab);
94void hotspot_newPrep(
HotSpotRec *h,
const char *prep);
104void hotspot_restore_all();
105void hotspot_hide_all();
106void hotspot_unhide_and_dump();
Definition: database.h:28
HotSpotRec * hotspot_new(int x1, int y1, int x2, int y2)
HotSpotRec * hotspot_unlink(HotSpotRec *head, HotSpotRec *h)
HotSpotRec * hotspot_delete_record(HotSpotRec *head, HotSpotRec *h)
HotSpotRec * hotspot_which(HotSpotRec *head, int x, int y)
HotSpotRec * hotspot_add(HotSpotRec *head, HotSpotRec *h, bool new_head)
Definition: adv_hotspot.h:30