mirror of
https://github.com/jmarshall23/Hellfire.git
synced 2026-08-12 07:50:53 +02:00
54 lines
1.5 KiB
C++
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);
|