mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Merged New Inventory Project into main branch
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1871 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -5,17 +5,18 @@
|
||||
#include "Worlddef.h"
|
||||
|
||||
typedef struct //for exit grids (object level)
|
||||
{ //if an item pool is also in same gridno, then this would be a separate levelnode
|
||||
{
|
||||
//if an item pool is also in same gridno, then this would be a separate levelnode
|
||||
//in the object level list
|
||||
UINT16 usGridNo; //sweet spot for placing mercs in new sector.
|
||||
INT16 sGridNo; //sweet spot for placing mercs in new sector.
|
||||
UINT8 ubGotoSectorX;
|
||||
UINT8 ubGotoSectorY;
|
||||
UINT8 ubGotoSectorZ;
|
||||
}EXITGRID;
|
||||
|
||||
BOOLEAN ExitGridAtGridNo( UINT16 usMapIndex );
|
||||
BOOLEAN GetExitGridLevelNode( UINT16 usMapIndex, LEVELNODE **ppLevelNode );
|
||||
BOOLEAN GetExitGrid( UINT16 usMapIndex, EXITGRID *pExitGrid );
|
||||
BOOLEAN ExitGridAtGridNo( INT16 sMapIndex );
|
||||
BOOLEAN GetExitGridLevelNode( INT16 sMapIndex, LEVELNODE **ppLevelNode );
|
||||
BOOLEAN GetExitGrid( INT16 sMapIndex, EXITGRID *pExitGrid );
|
||||
|
||||
void AddExitGridToWorld( INT32 iMapIndex, EXITGRID *pExitGrid );
|
||||
void RemoveExitGridFromWorld( INT32 iMapIndex );
|
||||
@@ -28,10 +29,10 @@ void AttemptToChangeFloorLevel( INT8 bRelativeZLevel );
|
||||
extern EXITGRID gExitGrid;
|
||||
extern BOOLEAN gfOverrideInsertionWithExitGrid;
|
||||
|
||||
// Finds closest ExitGrid of same type as is at gridno, within a radius. Checks
|
||||
// Finds closest ExitGrid of same type as is at gridno, within a radius. Checks
|
||||
// valid paths, destinations, etc.
|
||||
UINT16 FindGridNoFromSweetSpotCloseToExitGrid( SOLDIERTYPE *pSoldier, INT16 sSweetGridNo, INT8 ubRadius, UINT8 *pubDirection );
|
||||
INT16 FindGridNoFromSweetSpotCloseToExitGrid( SOLDIERTYPE *pSoldier, INT16 sSweetGridNo, INT8 ubRadius, UINT8 *pubDirection );
|
||||
|
||||
UINT16 FindClosestExitGrid( SOLDIERTYPE *pSoldier, INT16 sGridNo, INT8 ubRadius );
|
||||
INT16 FindClosestExitGrid( SOLDIERTYPE *pSoldier, INT16 sGridNo, INT8 ubRadius );
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user