mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Original Source for 1.13 Mod High Resolution version from 12/06/05
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@21 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
#ifndef _MERC_HIRING_H_
|
||||
#define _MERC_HIRING_H_
|
||||
|
||||
#include "Soldier Control.h"
|
||||
|
||||
|
||||
//
|
||||
// Used with the HireMerc function
|
||||
//
|
||||
#define MERC_HIRE_OVER_20_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
|
||||
Reference in New Issue
Block a user