mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Does not break savegame compatibility. Requires GameDir revision >= r2130. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7457 3b4a5df2-a311-0410-b5c6-a8a6f20db521
57 lines
1.2 KiB
C++
57 lines
1.2 KiB
C++
#ifndef __PMC_H
|
|
#define __PMC_H
|
|
|
|
/**
|
|
* @file
|
|
* @author Flugente (bears-pit.com)
|
|
*/
|
|
|
|
// main page (explains what this is all about)
|
|
BOOLEAN EnterPMCMain( );
|
|
void ExitPMCMain( );
|
|
void HandlePMCMain( );
|
|
void RenderPMCMain( );
|
|
|
|
// on this site you can conclude a contract with the WHO to get strategic data on diseases
|
|
BOOLEAN EnterPMCContract( );
|
|
void ExitPMCContract( );
|
|
void HandlePMCContract( );
|
|
void RenderPMCContract( );
|
|
|
|
// in case we hire miltia from the PMC, we have to know how many, where and when they should arrive
|
|
typedef struct
|
|
{
|
|
UINT8 usId; // number of this hiring event
|
|
UINT8 usSectorToArrive;
|
|
UINT8 usRegulars;
|
|
UINT8 usVeterans;
|
|
|
|
UINT32 usTimeToArrive;
|
|
} PMCReinforcesHireEvent;
|
|
|
|
extern std::vector<PMCReinforcesHireEvent> gPMCHiringEvents;
|
|
|
|
// global data on the PMC
|
|
typedef struct
|
|
{
|
|
UINT32 usTotalMoneyEarned;
|
|
|
|
UINT16 usRegularsHired;
|
|
UINT16 usVeteransHired;
|
|
|
|
UINT8 usRegularsAvailable;
|
|
UINT8 usVeteransAvailable;
|
|
UINT8 usUnused[2];
|
|
} PMCGlobalData;
|
|
|
|
extern PMCGlobalData gPMCData;
|
|
|
|
void GameInitPMC();
|
|
void HourlyUpdatePMC();
|
|
void HandlePMCArrival( UINT8 usId );
|
|
|
|
BOOLEAN SavePMC( HWFILE hwFile );
|
|
BOOLEAN LoadPMC( HWFILE hwFile );
|
|
|
|
#endif //__PMC_H
|