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,76 @@
|
||||
#ifndef __FINANCES_H
|
||||
#define __FINANCES_H
|
||||
|
||||
void GameInitFinances();
|
||||
void EnterFinances();
|
||||
void ExitFinances();
|
||||
void HandleFinances();
|
||||
void RenderFinances();
|
||||
|
||||
#define FINANCES_DATA_FILE "TEMP\\finances.dat"
|
||||
|
||||
// the financial structure
|
||||
struct finance{
|
||||
UINT8 ubCode; // the code index in the finance code table
|
||||
UINT32 uiIdNumber; // unique id number
|
||||
UINT8 ubSecondCode; // secondary code
|
||||
UINT32 uiDate; // time in the world in global time
|
||||
INT32 iAmount; // the amount of the transaction
|
||||
INT32 iBalanceToDate;
|
||||
struct finance *Next; // next unit in the list
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
ACCRUED_INTEREST,
|
||||
ANONYMOUS_DEPOSIT,
|
||||
TRANSACTION_FEE,
|
||||
HIRED_MERC,
|
||||
BOBBYR_PURCHASE,
|
||||
PAY_SPECK_FOR_MERC,
|
||||
MEDICAL_DEPOSIT,
|
||||
IMP_PROFILE,
|
||||
PURCHASED_INSURANCE,
|
||||
REDUCED_INSURANCE,
|
||||
EXTENDED_INSURANCE,
|
||||
CANCELLED_INSURANCE,
|
||||
INSURANCE_PAYOUT,
|
||||
EXTENDED_CONTRACT_BY_1_DAY,
|
||||
EXTENDED_CONTRACT_BY_1_WEEK,
|
||||
EXTENDED_CONTRACT_BY_2_WEEKS,
|
||||
DEPOSIT_FROM_GOLD_MINE,
|
||||
DEPOSIT_FROM_SILVER_MINE,
|
||||
PURCHASED_FLOWERS,
|
||||
FULL_MEDICAL_REFUND,
|
||||
PARTIAL_MEDICAL_REFUND,
|
||||
NO_MEDICAL_REFUND,
|
||||
PAYMENT_TO_NPC,
|
||||
TRANSFER_FUNDS_TO_MERC,
|
||||
TRANSFER_FUNDS_FROM_MERC,
|
||||
TRAIN_TOWN_MILITIA,
|
||||
PURCHASED_ITEM_FROM_DEALER,
|
||||
MERC_DEPOSITED_MONEY_TO_PLAYER_ACCOUNT,
|
||||
SOLD_ITEMS
|
||||
};
|
||||
|
||||
|
||||
typedef struct finance FinanceUnit;
|
||||
typedef struct finance *FinanceUnitPtr;
|
||||
|
||||
extern FinanceUnitPtr pFinanceListHead;
|
||||
//extern INT32 iCurrentBalance;
|
||||
UINT32 AddTransactionToPlayersBook(UINT8 ubCode, UINT8 ubSecondCode, UINT32 uiDate, INT32 iAmount);
|
||||
template <typename string1>
|
||||
void InsertDollarSignInToString( string1 pString );
|
||||
template <typename string1>
|
||||
void InsertCommasForDollarFigure( string1 pString );
|
||||
INT32 GetTodaysDaysIncome( void );
|
||||
INT32 GetProjectedTotalDailyIncome( void );
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user