You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
775 B
44 lines
775 B
/** |
|
* @file trigs.h |
|
* |
|
* Interface of functionality for triggering events when the player enters an area. |
|
*/ |
|
#pragma once |
|
|
|
namespace devilution { |
|
|
|
#ifdef __cplusplus |
|
extern "C" { |
|
#endif |
|
|
|
typedef struct TriggerStruct { |
|
int _tx; |
|
int _ty; |
|
int _tmsg; |
|
int _tlvl; |
|
} TriggerStruct; |
|
|
|
extern BOOL trigflag; |
|
extern int numtrigs; |
|
extern TriggerStruct trigs[MAXTRIGGERS]; |
|
extern int TWarpFrom; |
|
|
|
void InitNoTriggers(); |
|
void InitTownTriggers(); |
|
void InitL1Triggers(); |
|
void InitL2Triggers(); |
|
void InitL3Triggers(); |
|
void InitL4Triggers(); |
|
void InitSKingTriggers(); |
|
void InitSChambTriggers(); |
|
void InitPWaterTriggers(); |
|
void InitVPTriggers(); |
|
void Freeupstairs(); |
|
void CheckTrigForce(); |
|
void CheckTriggers(); |
|
|
|
#ifdef __cplusplus |
|
} |
|
#endif |
|
|
|
}
|
|
|