;=====================================================================
;Header file to be included by any files using ENEMY routines.
;---------------------------------------------------------------------

				global hud,hudinit
				global hud,domessage
				global hud,stopholly
				global hud,doHUD
				global hud,displayStatus

				global hud,bcdtoa
				global hud,stripzeros

				global hud,audiomsgptr
				global hud,audiocurptr
				global hud,audiocurpri
				global hud,audionxtptr
				global hud,audionxtpri
				global hud,audiotime
				global hud,audiosync

				global hud,slidemons


;Macro for message system interface ----------------------------------

DOMSG			macro
				IFNC '\1','d0'
				IFNC '\1','D0'
				move.w #\1,d0
				ENDC
				ENDC
				bsr domessage
				endm


;Message numbers for DOMSG macro -------------------------------------

MSG_ENERGY		equ 0*DWORD
MSG_WEAPNLOW	equ 1*DWORD
MSG_START		equ 2*DWORD
MSG_WELLDONE	equ 3*DWORD
MSG_POWERLOW	equ 4*DWORD
MSG_PORTAL		equ 5*DWORD
MSG_JAMMED		equ 6*DWORD
MSG_INTRANSIT	equ 7*DWORD
MSG_DOUBLESHOT	equ 8*DWORD
MSG_TRIPLESHOT	equ 9*DWORD
MSG_FLAMETHROW	equ 10*DWORD
MSG_BOMB		equ 11*DWORD
MSG_MINE		equ 12*DWORD
MSG_THUNDER		equ 13*DWORD
MSG_QUAKE		equ 14*DWORD
MSG_EXTRALIFE	equ 15*DWORD
MSG_NITRO		equ 16*DWORD
MSG_SPEEDUP		equ 17*DWORD
MSG_PODDYING	equ 18*DWORD
MSG_PODDEAD		equ 19*DWORD
MSG_INWORLD		equ 20*DWORD
MSG_SECRET		equ 21*DWORD
MSG_SHOTPOWER	equ 22*DWORD
MSG_SHOTRADAR	equ 23*DWORD
MSG_ONEMORE		equ 24*DWORD
MSG_OUCH		equ 25*DWORD
MSG_WHERE		equ 26*DWORD
MSG_GOODSHOT	equ 27*DWORD
MSG_AVOIDGND	equ 28*DWORD
MSG_GOODPLAY	equ 29*DWORD
MSG_FNDSECRET	equ 30*DWORD


; Macro for defining a hologram frame (offset,time) ------------------

HOLOFRAME		macro
				dc.w \1,\2				;frame offset, time (0-65535)
				endm

HOLOSOUND		macro
				dc.w -2,\1				;play sound effect now
				endm


;Frame offsets for above macro ---------------------------------------

holo0			equ 0
holo1			equ 1*(57*24)
holo2			equ 2*(57*24)
holo3			equ 3*(57*24)
holo4			equ 4*(57*24)
holo5			equ 5*(57*24)
holo6			equ 6*(57*24)
holo7			equ 7*(57*24)
holo8			equ 8*(57*24)
holo9			equ 9*(57*24)
holo10			equ 10*(57*24)
holo11			equ 11*(57*24)
holo12			equ 12*(57*24)
holo13			equ 13*(57*24)
holo14			equ 14*(57*24)
holo15			equ 15*(57*24)
holo16			equ 16*(57*24)
holo17			equ 17*(57*24)
holo18			equ 18*(57*24)
holo19			equ 19*(57*24)
holo20			equ 20*(57*24)
holo21			equ 21*(57*24)
holo22			equ 22*(57*24)
holo23			equ 23*(57*24)
holo24			equ 24*(57*24)
holo25			equ 25*(57*24)
holo26			equ 26*(57*24)			;appear / disappear frames
holo27			equ 27*(57*24)
holo28			equ 28*(57*24)
