Empire

Members

Methods

void recordStat( EmpireStat arg0, int arg1 )

Records an int value for the specified empire stat at the current game time

void recordStat( EmpireStat arg0, float arg1 )

Records a float value for the specified empire stat at the current game time

void recordStatDelta( EmpireStat arg0, int arg1 )

Records an int delta for the specified empire stat at the current game time

void recordStatDelta( EmpireStat arg0, float arg1 )

Records a float delta for the specified empire stat at the current game time

void recordEvent( EmpireStat arg0, uint arg1, string& arg2 )

Records an event for the specified empire stat at the current game time

void flagDesignOld( Design& arg0 )

Marks a design as out of date, to be updated whenever it is requested for construction.

double get_EstTotalPopulation( ) const

Returns double : Estimated amount of population in this empire, visible to everyone.

double get_TotalPopulation( ) const

Returns double : Total exact amount of population in this empire.

double get_FTLIncome( ) const

Returns double : FTL income per second.

double get_FTLStored( ) const

Returns double : Current stored FTL.

double get_FTLCapacity( ) const

Returns double : Total FTL storage capacity.

double get_FTLUse( ) const

Returns double : Current used ftl per second.

bool get_FTLShortage( ) const

Returns bool : Whether there isn't currently enough ftl to run.

bool isFTLShortage( double amt ) const

Returns bool : Whether we would be in ftl shortage using this much energy.

double get_EnergyIncome( ) const

Returns double : Energy income per second.

double get_EnergyStored( ) const

Returns double : Current stored Energy.

double get_EnergyUse( ) const

Returns double : Current used energy per second.

double get_EnergyEfficiency( ) const

Returns double : Current efficiency of energy income based on storage.

bool get_EnergyShortage( ) const

Returns bool : Whether there isn't currently enough energy to run.

bool isEnergyShortage( double amt ) const

Returns bool : Whether we would be in energy shortage using this much energy.

int get_TotalBudget( ) const

Returns int : Money generated before reduction by maintenance.

int get_MaintenanceBudget( ) const

Returns int : Maintenance being paid every budget cycle.

int get_RemainingBudget( ) const

Returns int : Money still available for spending in this budget cycle.

int get_ForwardBudget( ) const

Returns int : Money added to the next budget as a single-time modifier.

int get_BonusBudget( ) const

Returns int : Special funds bonus budget gotten from one-time incomes.

int get_EstNextBudget( ) const

Returns int : Estimated value of the next budget amount.

int getMoneyFromType( uint type ) const

Returns int : The contribution to the budget from a particular type of income/expense.

uint get_WelfareMode( ) const

Returns uint : The type of welfare exchange mode the empire is using.

int getEstBudgetConsuming( int amount ) const

Returns int : The estimated budget after consuming the given amount.

double get_BorrowRate( ) const

Returns double : Factor of borrowed money the next budget is reduced by.

double get_BudgetCycle( ) const

Returns double : Total amount of time a single budget cycle lasts.

double get_BudgetTimer( ) const

Returns double : Time remaining until the next budget cycle.

bool canBorrow( int amount ) const

Returns bool : Whether it's possible to borrow that amount of money without getting a negative next budget.

bool canPay( int amount ) const

Returns bool : Whether it's possible to spend that amount of money, including borrowing, without getting a negative next budget.

float get_DebtFactor( ) const

Returns float : The factor of income the empire is currently in debt.

void set_WelfareMode( uint mode )

void resourceTick( double time )

Internal processing function.

void modFTLCapacity( double amount )

Modify the FTL storage capacity.

void modFTLStored( double amount )

Modify how much FTL is currently stored.

void modFTLIncome( double amount )

Modify the current FTL income.

void modFTLUse( double amount )

Modify the current FTL use.

double consumeFTL( double amount, bool partial = true )

Consume an amount of FTL resource. Returns double : The amount of FTL that was consumed.

bool consumeFTLUse( double amount )

Grab a chunk of ftl use for our purposes. Returns bool : Whether we can use this much ftl.

void modEnergyStored( double amount )

Modify how much Energy is currently stored.

void modEnergyAllocated( double amount )

Modify how much Energy is currently allocated. Allocated energy is considered stored for efficiency purposes, but does not appear as usable energy.

void modEnergyIncome( double amount )

Modify the current Energy income.

void modEnergyUse( double amount )

Modify the current Energy use.

double consumeEnergy( double amount, bool consumePartial = true )

Consume an amount of global energy. Returns double : The amount of energy that was consumed.

bool consumeEnergyUse( double amount )

Grab a chunk of energy use for our purposes. Returns bool : Whether we can use this much energy.

void addFloatedEnergy( const Empire@ other, double amount )

Add energy floated for another empire, until spent.

int get_BudgetCycleId( )

Returns int : ID for the currently active budget cycle.

int consumeBudget( int amount, bool borrow = true )

Spend a chunk of money from the remaining budget. Returns int : Budget cycle ID the money was spent in, -1 if unsuccesful.

void refundBudget( int amount, int cycleId )

Refunds money back to the budget, but only if the money was from this cycle.

void modMaintenance( int amount, uint type = 0 )

Modify current maintenance costs.

void modTotalBudget( int amount, uint type = 0 )

Modify total money income.

void modForwardBudget( int amount )

Add money to the upcoming budget as a single-time modifier.

void addBonusBudget( int amount )

Add money into the bonus budget. Will not go away until spent.

void modRemainingBudget( int amount )

Add money to the current budget as a single-time modifier.

void resetBudget( )

Cycle the budget right now.

void modTotalPopulation( double amount )

Modify the total empire population remembered.

void writeResources( Message& msg )

Internal message passing.

void readResources( Message& msg )

Internal message passing.