Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.Economy
Source: src/com/multiversesocial/hyperview/Economy.java
paraldas
public class Economy implements EconomyConstants, GovernmentConstants, HyperConstants
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
byte birthRate | = 1 | No comment in source; not referenced by name in this type’s methods. | |
double births | = 0.0 | No comment in source; assigned in getFiscalYear(). | |
int[] bonds | = new int[5] | No comment in source; not referenced by name in this type’s methods. | |
int[] bondYield | = new int[5] | No comment in source; not referenced by name in this type’s methods. | |
double budget | = 300.0 | double initBudget = 300.0; /* Budget before Taxation | |
int cashStore | = 0 | No comment in source; not referenced by name in this type’s methods. | |
long coffers | = 20 | No comment in source; assigned in getFiscalYear(), revolt(). | |
byte consumerGoods | = 5 | No comment in source; name appears in 2 other source file(s): ChangeWorkForce, EconomyPane. | |
byte curGovernment | = 1 | No comment in source; assigned in getFiscalYear(), revoltNow(); used in harvestCrops(). | |
byte curMonth | = 0 | No comment in source; not referenced by name in this type’s methods. | |
double currencyRate | = 1.0E9 | No comment in source; assigned in getFiscalYear(), revolt(). | |
HyperView curView | = null | The Gfx() for Graphics output. | |
byte deathRate | = 0 | No comment in source; not referenced by name in this type’s methods. | |
double deaths | = 0.0 | No comment in source; assigned in getFiscalYear(). | |
boolean deflation | = false | No comment in source; assigned in getFiscalYear(). | |
int demand | = 1 | double currencyRate = 1000000000.0; /* where it's at in the inflationary world | |
int ecFlags | = 0 | No comment in source; not referenced by name in this type’s methods. | |
boolean echo | = true | No comment in source; used in getFiscalYear(), harvestCrops(). | |
EconomyPane economyPane | = null | No comment in source; assigned in Economy(); used in getFiscalYear(), revolt(), harvestCrops(), revoltNow(), produce(). | |
int ecSeed | = 1 | No comment in source; assigned in revolt(). | |
byte[] efficiency | = new byte[MAX_FACTORYS] | No comment in source; assigned in reset(), produce(). | |
byte entertainment | = 5 | No comment in source; not referenced by name in this type’s methods. | |
long expenses | = 1 | No comment in source; not referenced by name in this type’s methods. | |
byte[] factory | = new byte[MAX_FACTORYS] | What it's producing. | |
byte farmers | = 30 | No comment in source; assigned in harvestCrops(). | |
double ftmp | = 0.0 | No comment in source; assigned in getFiscalYear(). | |
long fuel | = 1 | No comment in source; assigned in produce(). | |
double GEP | = 1.0 | No comment in source; assigned in getFiscalYear(). | |
double growth | = 1 | No comment in source; assigned in getFiscalYear(). | |
byte housing | = 5 | No comment in source; not referenced by name in this type’s methods. | |
byte infastructure | = 5 | No comment in source; not referenced by name in this type’s methods. | |
int inflation | = 0 | No comment in source; assigned in getFiscalYear(). | |
double initBudget | = 300.0 | No comment in source; assigned in getFiscalYear(). | |
int interest | = 2 | No comment in source; used in getFiscalYear(). | |
byte issue | = 0 | incremented apon Pesoization | |
int iteration | = 0 | No comment in source; not referenced by name in this type’s methods. | |
String locName | = "" | No comment in source; not referenced by name in this type’s methods. | |
byte locType | = 0 | No comment in source; not referenced by name in this type’s methods. | |
byte manufacturing | = 20 | No comment in source; used in produce(). | |
byte medicine | = 5 | No comment in source; not referenced by name in this type’s methods. | |
int medicines | = 0 | No comment in source; not referenced by name in this type’s methods. | |
byte[] mineSplit | = new byte[MAX_RESOURCES] | No comment in source; assigned in reset(). | |
int[] mineTime | = new int[MAX_RESOURCES] | No comment in source; assigned in reset(). | |
byte mining | = 20 | No comment in source; not referenced by name in this type’s methods. | |
byte morale | = 0 | No comment in source; not referenced by name in this type’s methods. | |
String name | = "" | byte locType = 0; /* PLNT MOON SHIP ASTR ie: where is this economy? | |
byte output | = 1 | No comment in source; assigned in getFiscalYear(); used in produce(). | |
double outputGap | = 0.0 | No comment in source; assigned in getFiscalYear(). | |
int plagues | = 0 | No comment in source; not referenced by name in this type’s methods. | |
double population | = 100 | No comment in source; assigned in getFiscalYear(), harvestCrops(); used in revolt(), produce(). | |
int[] produceTime | = new int[MAX_FACTORYS] | No comment in source; assigned in reset(), produce(). | |
byte profitPercent | = 100 | No comment in source; name appears in 2 other source file(s): EconomyPane, SetProfit. | |
byte research | = 5 | Important variables | |
int resources | = 0 | No comment in source; not referenced by name in this type’s methods. | |
int resourcesFound | = 0 | No comment in source; not referenced by name in this type’s methods. | |
long revenue | = 1 | No comment in source; assigned in getFiscalYear(). | |
int revoltDuration | = 0 | No comment in source; assigned in revoltNow(). | |
byte shelter | = 0 | No comment in source; assigned in getFiscalYear(), revolt(), produce(). | |
int[] shipParts | = new int[68] | No comment in source; assigned in reset(); used in produce(). | |
int[] socialProgs | = new int[4] | No comment in source; not referenced by name in this type’s methods. | |
int stockMarket | = 0 | No comment in source; not referenced by name in this type’s methods. | |
double[] storedResources | = new double[MAX_RESOURCES] | No comment in source; assigned in reset(), revolt(), harvestCrops(), eatResources(). | |
int strRow | = 0 | No comment in source; name appears in 1 other source file(s): EconomyPane. | |
int supplyPath | = 0 | For Trade Routes | |
byte taxes | = 0 | No comment in source; used in getFiscalYear(). | |
int techLevel | = 0 | No comment in source; used in produce(). | |
double tgrowth | = 0.0 | No comment in source; not referenced by name in this type’s methods. | |
int tint | = 0 | No comment in source; assigned in getFiscalYear(), revolt(), harvestCrops(), produce(). | |
byte totalFactories | = 0 | No comment in source; assigned in produce(); used in revolt(), eatResources(). | |
double totalMoney | = 1.0 | No comment in source; assigned in getFiscalYear(). | |
int totalPutStrs | = 0 | No comment in source; not referenced by name in this type’s methods. | |
byte unEmployed | = 0 | No comment in source; assigned in getFiscalYear(); used in revolt(), produce(). | |
int weather | = 7 | No comment in source; assigned in harvestCrops(). | |
int year | = 1 | No comment in source; assigned in getFiscalYear(). |
| Signature | Description | Source |
|---|---|---|
Economy() | 1 statement(s); calls super(). | |
Economy(EconomyPane tPane) | 4 statement(s); calls super(), reset(). |
| Signature | Description | Source |
|---|---|---|
int eatResources(int totalFactories) | 4 statement(s). | |
public int getFiscalYear() | 36 statement(s); calls economyPane.queString(), curView.rand(), this.revoltNow(), revolt(). | |
public int harvestCrops() | 27 statement(s); calls economyPane.queString(), curView.rand(), revoltNow(). | |
public int produce() | 20 statement(s); calls economyPane.queString(), this.eatResources(), Math.abs(). | |
public void reset() | 2 statement(s). | |
public void revolt() | 14 statement(s); calls curView.rand(), curView.sRand(), economyPane.queString(). | |
public void revoltNow() | 4 statement(s); calls economyPane.queString(), curView.rand(). |
instantiation — EconomyPane.java, line 63
63 economy = new Economy((EconomyPane)this);
declaration — ChangeWorkForce.java, line 7
7 Economy economy = null;
declaration — DoBudget.java, line 7
7 Economy economy = null;