22 #ifndef ULTIMA4_GAME_PORTAL_H 23 #define ULTIMA4_GAME_PORTAL_H 25 #include "ultima/ultima4/game/context.h" 26 #include "ultima/ultima4/map/map.h" 40 ACTION_EXIT_NORTH = 0x8,
41 ACTION_EXIT_EAST = 0x10,
42 ACTION_EXIT_SOUTH = 0x20,
43 ACTION_EXIT_WEST = 0x40
44 } PortalTriggerAction;
46 typedef bool (*PortalConditionsMet)(
const Portal *p);
57 PortalTriggerAction _triggerAction;
58 PortalConditionsMet _portalConditionsMet;
62 TransportContext _portalTransportRequisites;
70 void createDngLadder(
Location *location, PortalTriggerAction action,
Portal *p);
77 int usePortalAt(
Location *location,
MapCoords coords, PortalTriggerAction action);
Definition: detection.h:27
Definition: location.h:49