New Feature: a private military company allows hiring of advanced militia. For more info, see http://www.ja-galaxy-forum.com/ubbthreads.php/topics/335279#Post335279

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
This commit is contained in:
Flugente
2014-08-30 17:34:25 +00:00
parent 5fc358f70c
commit e00897b91b
40 changed files with 1613 additions and 67 deletions
+56
View File
@@ -0,0 +1,56 @@
#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