Devilution
Diablo devolved - magic behind the 1996 computer game
Functions | Variables
portal.cpp File Reference
#include "all.h"

Go to the source code of this file.

Functions

void InitPortals ()
 
void SetPortalStats (int i, BOOL o, int x, int y, int lvl, int lvltype)
 
void AddWarpMissile (int i, int x, int y)
 
void SyncPortals ()
 
void AddInTownPortal (int i)
 
void ActivatePortal (int i, int x, int y, int lvl, int lvltype, BOOL sp)
 
void DeactivatePortal (int i)
 
BOOL PortalOnLevel (int i)
 
void RemovePortalMissile (int id)
 
void SetCurrentPortal (int p)
 
void GetPortalLevel ()
 
void GetPortalLvlPos ()
 
BOOL PosOkPortal (int lvl, int x, int y)
 

Variables

DEVILUTION_BEGIN_NAMESPACE PortalStruct portal [MAXPORTAL]
 In-game state of portals. More...
 
int portalindex
 Current portal number (a portal array index). More...
 
int WarpDropX [MAXPORTAL] = { 57, 59, 61, 63 }
 X-coordinate of each players portal in town. More...
 
int WarpDropY [MAXPORTAL] = { 40, 40, 40, 40 }
 Y-coordinate of each players portal in town. More...