public class Escrow
extends Object
Modifier and Type | Field and Description |
---|---|
int |
cEconomyEscrowID |
int |
cMilitaryEscrowID |
int |
cRootEscrowID |
Modifier and Type | Method and Description |
---|---|
bool |
kbEscrowAllocateCurrentResources()
Reallocates the current resource stockpile into the escrows.
|
int |
kbEscrowCreate(string name,
int resourceID,
float percentage,
int parentID)
Creates an escrow.
|
bool |
kbEscrowDestroy(int escrowID,
bool promoteChildren)
Destroys an escrow.
|
bool |
kbEscrowFlush(int escrowID,
int resourceID,
bool flushChildren)
Removes all credits (and puts them into the root escrow) of the given resource type from the given escrow.
|
float |
kbEscrowGetAmount(int escrowID,
int resourceID)
Returns the amount of credits in the given escrow for the given resource.
|
int |
kbEscrowGetID(string name)
Returns the ID of the named escrow.
|
float |
kbEscrowGetPercentage(int escrowID,
int resourceID)
Returns the percentage of the escrow.
|
bool |
kbEscrowSetCap(int escrowID,
int resourceID,
float cap)
Sets the cap of the escrow.
|
bool |
kbEscrowSetPercentage(int escrowID,
int resourceID,
float percentage)
Sets the percentage of the escrow.
|
public final int cRootEscrowID
public final int cEconomyEscrowID
public final int cMilitaryEscrowID
public int kbEscrowCreate(string name, int resourceID, float percentage, int parentID)
public int kbEscrowGetID(string name)
public float kbEscrowGetPercentage(int escrowID, int resourceID)
public bool kbEscrowSetPercentage(int escrowID, int resourceID, float percentage)
public bool kbEscrowSetCap(int escrowID, int resourceID, float cap)
public float kbEscrowGetAmount(int escrowID, int resourceID)
public bool kbEscrowFlush(int escrowID, int resourceID, bool flushChildren)
public bool kbEscrowAllocateCurrentResources()