Files
source/Tactical/Merc Hiring.h
T
Wanne f839dcbe73 - bugfix: CTDs after you have placed your mercs before the attacking occurs
- added notification when you try to create a new IMP and you already have the maxium number of mercs (18) in your team.


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@619 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2006-11-05 21:21:51 +00:00

56 lines
1.5 KiB
C

#ifndef _MERC_HIRING_H_
#define _MERC_HIRING_H_
#include "Soldier Control.h"
//
// Used with the HireMerc function
//
#define MERC_HIRE_OVER_18_MERCS_HIRED -1
#define MERC_HIRE_FAILED 0
#define MERC_HIRE_OK 1
#define MERC_ARRIVE_TIME_SLOT_1 ( 7 * 60 + 30 ) // 7:30 a.m.
#define MERC_ARRIVE_TIME_SLOT_2 ( 13 * 60 + 30 ) // 1:30 pm
#define MERC_ARRIVE_TIME_SLOT_3 ( 19 * 60 + 30 ) // 7:30 pm
// ATE: This define has been moved to be a function so that
// we pick the most appropriate time of day to use...
//#define MERC_ARRIVAL_TIME_OF_DAY (7 * 60 + 30) // 7:30 am
typedef struct
{
UINT8 ubProfileID;
INT16 sSectorX;
INT16 sSectorY;
INT8 bSectorZ;
INT16 iTotalContractLength;
BOOLEAN fCopyProfileItemsOver;
UINT32 uiTimeTillMercArrives;
UINT8 ubInsertionCode;
UINT16 usInsertionData;
BOOLEAN fUseLandingZoneForArrival;
} MERC_HIRE_STRUCT;
// ATE: Globals that dictate where the mercs will land once being hired
extern INT16 gsMercArriveSectorX;
extern INT16 gsMercArriveSectorY;
INT8 HireMerc( MERC_HIRE_STRUCT *pHireMerc);
void MercArrivesCallback( UINT8 ubSoldierID );
BOOLEAN IsMercHireable( UINT8 ubMercID );
BOOLEAN IsMercDead( UINT8 ubMercID );
UINT8 NumberOfMercsOnPlayerTeam();
BOOLEAN IsTheSoldierAliveAndConcious( SOLDIERTYPE *pSoldier );
void HandleMercArrivesQuotes( SOLDIERTYPE *pSoldier );
void UpdateAnyInTransitMercsWithGlobalArrivalSector( );
UINT32 GetMercArrivalTimeOfDay( );
#endif