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@2144 3b4a5df2-a311-0410-b5c6-a8a6f20db521
108 lines
2.5 KiB
C
108 lines
2.5 KiB
C
#ifndef __MERCS_H
|
|
#define __MERCS_H
|
|
|
|
|
|
#define MERC_BUTTON_UP_COLOR FONT_MCOLOR_WHITE
|
|
#define MERC_BUTTON_DOWN_COLOR FONT_MCOLOR_DKWHITE
|
|
|
|
extern UINT8 NUMBER_OF_MERCS;
|
|
extern UINT8 LAST_MERC_ID;
|
|
|
|
#define MAX_NUMBER_OF_MERCS 27
|
|
//#define NUMBER_OF_MERCS 27//hayden
|
|
//#define LAST_MERC_ID 26//hayden
|
|
#define NUMBER_OF_BAD_MERCS 5
|
|
#define NUMBER_MERCS_AFTER_FIRST_MERC_ARRIVES 6
|
|
#define NUMBER_MERCS_AFTER_SECOND_MERC_ARRIVES 8
|
|
#define NUMBER_MERCS_AFTER_THIRD_MERC_ARRIVES 9
|
|
#define NUMBER_MERCS_AFTER_FOURTH_MERC_ARRIVES 10
|
|
|
|
#define MERC_NUM_DAYS_TILL_FIRST_WARNING 7
|
|
#define MERC_NUM_DAYS_TILL_ACCOUNT_SUSPENDED 9
|
|
#define MERC_NUM_DAYS_TILL_ACCOUNT_INVALID 12
|
|
|
|
|
|
#define MERC_LARRY_ROACHBURN 7
|
|
|
|
|
|
#define DAYS_TIL_M_E_R_C_AVAIL 3
|
|
|
|
//The players account information for the MERC site
|
|
enum
|
|
{
|
|
MERC_NO_ACCOUNT,
|
|
MERC_ACCOUNT_SUSPENDED,
|
|
MERC_ACCOUNT_INVALID,
|
|
MERC_ACCOUNT_VALID_FIRST_WARNING,
|
|
MERC_ACCOUNT_VALID,
|
|
};
|
|
//extern UINT8 gubPlayersMercAccountStatus;
|
|
//extern UINT32 guiPlayersMercAccountNumber;
|
|
|
|
|
|
// The video conferencing for the merc page
|
|
#define MERC_VIDEO_SPECK_SPEECH_NOT_TALKING 65535
|
|
#define MERC_VIDEO_SPECK_HAS_TO_TALK_BUT_QUOTE_NOT_CHOSEN_YET 65534
|
|
|
|
|
|
//used with the gubArrivedFromMercSubSite variable to signify whcih page the player came from
|
|
enum
|
|
{
|
|
MERC_CAME_FROM_OTHER_PAGE,
|
|
MERC_CAME_FROM_ACCOUNTS_PAGE,
|
|
MERC_CAME_FROM_HIRE_PAGE,
|
|
};
|
|
|
|
|
|
|
|
void GameInitMercs();
|
|
BOOLEAN EnterMercs();
|
|
void ExitMercs();
|
|
void HandleMercs();
|
|
void RenderMercs();
|
|
|
|
|
|
BOOLEAN InitMercBackGround();
|
|
BOOLEAN DrawMecBackGround();
|
|
BOOLEAN RemoveMercBackGround();
|
|
void DailyUpdateOfMercSite( UINT16 usDate);
|
|
UINT8 GetMercIDFromMERCArray(UINT8 ubMercID);
|
|
|
|
void DisplayTextForSpeckVideoPopUp(STR16 pString);
|
|
|
|
BOOLEAN IsMercMercAvailable( UINT8 ubMercID );
|
|
|
|
void HandlePlayerHiringMerc( UINT8 ubHiredMercID );
|
|
void EnterInitMercSite();
|
|
|
|
void GetMercSiteBackOnline();
|
|
|
|
void DisableMercSiteButton();
|
|
|
|
extern UINT16 gusMercVideoSpeckSpeech;
|
|
|
|
extern UINT8 gubArrivedFromMercSubSite;
|
|
|
|
extern UINT8 gubMercArray[ MAX_NUMBER_OF_MERCS ];
|
|
extern UINT8 gubCurMercIndex;
|
|
//extern UINT8 gubLastMercIndex;
|
|
|
|
//extern UINT32 guiNumberOfMercPaymentsInDays;
|
|
//extern UINT8 gubNumDaysTillFirstMercArrives;
|
|
|
|
extern BOOLEAN gfJustHiredAMercMerc;
|
|
|
|
void InitializeNumDaysMercArrive();
|
|
|
|
void NewMercsAvailableAtMercSiteCallBack( );
|
|
|
|
void CalcAproximateAmountPaidToSpeck();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|