1 #ifndef __MERCS_H 2 #define __MERCS_H 3 4 #include <string_theory/string> 5 6 class MERCListingModel; 7 8 #define MERC_BUTTON_UP_COLOR FONT_MCOLOR_WHITE 9 #define MERC_BUTTON_DOWN_COLOR FONT_MCOLOR_DKWHITE 10 11 12 #define MERC_NUM_DAYS_TILL_FIRST_WARNING 7 13 #define MERC_NUM_DAYS_TILL_ACCOUNT_SUSPENDED 9 14 #define MERC_NUM_DAYS_TILL_ACCOUNT_INVALID 12 15 16 17 #define MERC_LARRY_ROACHBURN 7 18 19 20 #define DAYS_TIL_M_E_R_C_AVAIL 3 21 22 //The players account information for the MERC site 23 enum 24 { 25 MERC_NO_ACCOUNT, 26 MERC_ACCOUNT_SUSPENDED, 27 MERC_ACCOUNT_INVALID, 28 MERC_ACCOUNT_VALID_FIRST_WARNING, 29 MERC_ACCOUNT_VALID, 30 }; 31 //extern UINT8 gubPlayersMercAccountStatus; 32 //extern UINT32 guiPlayersMercAccountNumber; 33 34 35 // The video conferencing for the merc page 36 #define MERC_VIDEO_SPECK_SPEECH_NOT_TALKING 65535 37 #define MERC_VIDEO_SPECK_HAS_TO_TALK_BUT_QUOTE_NOT_CHOSEN_YET 65534 38 39 40 //used with the gubArrivedFromMercSubSite variable to signify whcih page the player came from 41 enum 42 { 43 MERC_CAME_FROM_OTHER_PAGE, 44 MERC_CAME_FROM_ACCOUNTS_PAGE, 45 MERC_CAME_FROM_HIRE_PAGE, 46 }; 47 48 49 50 void GameInitMercs(void); 51 void EnterMercs(void); 52 void ExitMercs(void); 53 void HandleMercs(void); 54 void RenderMercs(void); 55 56 57 void InitMercBackGround(void); 58 void DrawMecBackGround(void); 59 void RemoveMercBackGround(void); 60 void DailyUpdateOfMercSite( UINT16 usDate); 61 ProfileID GetProfileIDFromMERCListingIndex(UINT8 ubMercIndex); 62 ProfileID GetProfileIDFromMERCListing(const MERCListingModel* listing); 63 void DisplayTextForSpeckVideoPopUp(const ST::string& str); 64 65 void EnterInitMercSite(void); 66 67 void GetMercSiteBackOnline(void); 68 69 void DisableMercSiteButton(void); 70 71 extern UINT16 gusMercVideoSpeckSpeech; 72 73 extern UINT8 gubArrivedFromMercSubSite; 74 75 extern UINT8 gubCurMercIndex; 76 77 extern BOOLEAN gfJustHiredAMercMerc; 78 79 void NewMercsAvailableAtMercSiteCallBack(void); 80 81 void CalcAproximateAmountPaidToSpeck(void); 82 83 void SyncLastMercFromSaveGame(); 84 #endif 85