Files
Justin Marshall 101266ab72 Initial commit.
2026-04-27 10:35:40 -07:00

54 lines
1.5 KiB
C++

/*-----------------------------------------------------------------------**
** Diablo
**
** Constants and Variables
**
** (C)1995 Condor, Inc. All rights reserved.
**-----------------------------------------------------------------------**
** $
**-----------------------------------------------------------------------*/
/*-----------------------------------------------------------------------**
** Defines
**-----------------------------------------------------------------------*/
#define MAXPORTAL 4 // Must be the same as MAX_PLRS!
/*-----------------------------------------------------------------------**
** Structures
**-----------------------------------------------------------------------*/
typedef struct {
BOOL open;
int x;
int y;
int level;
int ltype;
BOOL setlvl;
} PortalStruct;
/*-----------------------------------------------------------------------**
** Externs
**-----------------------------------------------------------------------*/
extern PortalStruct portal[MAXPORTAL];
/*-----------------------------------------------------------------------**
** Prototypes
**-----------------------------------------------------------------------*/
void InitPortals();
void SyncPortals();
void AddInTownPortal(int i);
void ActivatePortal(int i, int x, int y, int lvl, int lvltype, BOOL sp);
void DeactivatePortal(int i);
void SetCurrentPortal(int p);
void GetPortalLvlPos();
void GetPortalLevel();
BOOL PortalOnLevel(int i);
void RemovePortalMissile(int i);