mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1871 3b4a5df2-a311-0410-b5c6-a8a6f20db521
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
#ifndef __STRATEGIC_H
|
|
#define __STRATEGIC_H
|
|
// header for strategic structure
|
|
#include "Types.h"
|
|
#include "mapscreen.h"
|
|
#include "soldier control.h"
|
|
|
|
|
|
struct strategicmapelement{
|
|
UINT8 UNUSEDuiFootEta[4]; // eta/mvt costs for feet
|
|
UINT8 UNUSEDuiVehicleEta[4]; // eta/mvt costs for vehicles
|
|
UINT8 uiBadFootSector[4]; // blocking mvt for foot
|
|
UINT8 uiBadVehicleSector[4]; // blocking mvt from vehicles
|
|
INT8 bNameId;
|
|
BOOLEAN fEnemyControlled; // enemy controlled or not
|
|
BOOLEAN fEnemyAirControlled;
|
|
BOOLEAN UNUSEDfLostControlAtSomeTime;
|
|
INT8 bSAMCondition; // SAM Condition .. 0 - 100, just like an item's status
|
|
INT8 bPadding[ 20 ];
|
|
} ;
|
|
|
|
enum
|
|
{
|
|
INSERTION_CODE_NORTH,
|
|
INSERTION_CODE_SOUTH,
|
|
INSERTION_CODE_EAST,
|
|
INSERTION_CODE_WEST,
|
|
INSERTION_CODE_GRIDNO,
|
|
INSERTION_CODE_ARRIVING_GAME,
|
|
INSERTION_CODE_CHOPPER,
|
|
INSERTION_CODE_PRIMARY_EDGEINDEX,
|
|
INSERTION_CODE_SECONDARY_EDGEINDEX,
|
|
INSERTION_CODE_CENTER,
|
|
};
|
|
|
|
|
|
//PLEASE USE CALCULATE_STRATEGIC_INDEX() macro instead (they're identical).
|
|
//#define GETWORLDMAPNO( x, y ) ( x+(MAP_WORLD_X*y) )
|
|
|
|
typedef struct strategicmapelement StrategicMapElement;
|
|
extern StrategicMapElement StrategicMap[MAP_WORLD_X*MAP_WORLD_Y];
|
|
|
|
BOOLEAN InitStrategicEngine( );
|
|
|
|
void HandleSoldierDeadComments( SOLDIERTYPE *pSoldier );
|
|
|
|
BOOLEAN HandleStrategicDeath( SOLDIERTYPE *pSoldier );
|
|
|
|
#endif |