Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.Economy
Source: src/com/multiversesocial/hyperview/Economy.java

Economy

HyperView V3.2 — class
version V3.2 class

Summary

paraldas

Source file: Economy.java

Hierarchy

Extends: none

Implements: EconomyConstants, GovernmentConstants, HyperConstants

Referenced HyperView classes

Media files used

Declaration & members

public class Economy implements EconomyConstants, GovernmentConstants, HyperConstants

Declared in src/com/multiversesocial/hyperview/Economy.java, lines 6–779. 74 field(s), 2 constructor(s), 7 method(s). Every member has an anchor you can link to (e.g. Economy.html#<id>).

Fields (74)

DeclarationValue / initializerDescriptionSource
byte birthRate= 1No comment in source; not referenced by name in this type’s methods.line 38
double births= 0.0No comment in source; assigned in getFiscalYear().line 83
int[] bonds= new int[5]No comment in source; not referenced by name in this type’s methods.line 52
int[] bondYield= new int[5]No comment in source; not referenced by name in this type’s methods.line 54
double budget= 300.0double initBudget = 300.0; /* Budget before Taxationline 61
int cashStore= 0No comment in source; not referenced by name in this type’s methods.line 71
long coffers= 20No comment in source; assigned in getFiscalYear(), revolt().line 55
byte consumerGoods= 5No comment in source; name appears in 2 other source file(s): ChangeWorkForce, EconomyPane.line 28
byte curGovernment= 1No comment in source; assigned in getFiscalYear(), revoltNow(); used in harvestCrops().line 34
byte curMonth= 0No comment in source; not referenced by name in this type’s methods.line 44
double currencyRate= 1.0E9No comment in source; assigned in getFiscalYear(), revolt().line 64
HyperView curView= nullThe Gfx() for Graphics output.line 86
byte deathRate= 0No comment in source; not referenced by name in this type’s methods.line 39
double deaths= 0.0No comment in source; assigned in getFiscalYear().line 83
boolean deflation= falseNo comment in source; assigned in getFiscalYear().line 85
int demand= 1double currencyRate = 1000000000.0; /* where it's at in the inflationary worldline 65
int ecFlags= 0No comment in source; not referenced by name in this type’s methods.line 16
boolean echo= trueNo comment in source; used in getFiscalYear(), harvestCrops().line 13
EconomyPane economyPane= nullNo comment in source; assigned in Economy(); used in getFiscalYear(), revolt(), harvestCrops(), revoltNow(), produce().line 90
int ecSeed= 1No comment in source; assigned in revolt().line 79
byte[] efficiency= new byte[MAX_FACTORYS]No comment in source; assigned in reset(), produce().line 47
byte entertainment= 5No comment in source; not referenced by name in this type’s methods.line 21
long expenses= 1No comment in source; not referenced by name in this type’s methods.line 56
byte[] factory= new byte[MAX_FACTORYS]What it's producing.line 48
byte farmers= 30No comment in source; assigned in harvestCrops().line 23
double ftmp= 0.0No comment in source; assigned in getFiscalYear().line 83
long fuel= 1No comment in source; assigned in produce().line 78
double GEP= 1.0No comment in source; assigned in getFiscalYear().line 58
double growth= 1No comment in source; assigned in getFiscalYear().line 32
byte housing= 5No comment in source; not referenced by name in this type’s methods.line 26
byte infastructure= 5No comment in source; not referenced by name in this type’s methods.line 25
int inflation= 0No comment in source; assigned in getFiscalYear().line 69
double initBudget= 300.0No comment in source; assigned in getFiscalYear().line 60
int interest= 2No comment in source; used in getFiscalYear().line 33
byte issue= 0incremented apon Pesoizationline 51
int iteration= 0No comment in source; not referenced by name in this type’s methods.line 9
String locName= ""No comment in source; not referenced by name in this type’s methods.line 89
byte locType= 0No comment in source; not referenced by name in this type’s methods.line 87
byte manufacturing= 20No comment in source; used in produce().line 20
byte medicine= 5No comment in source; not referenced by name in this type’s methods.line 24
int medicines= 0No comment in source; not referenced by name in this type’s methods.line 68
byte[] mineSplit= new byte[MAX_RESOURCES]No comment in source; assigned in reset().line 74
int[] mineTime= new int[MAX_RESOURCES]No comment in source; assigned in reset().line 75
byte mining= 20No comment in source; not referenced by name in this type’s methods.line 19
byte morale= 0No comment in source; not referenced by name in this type’s methods.line 29
String name= ""byte locType = 0; /* PLNT MOON SHIP ASTR ie: where is this economy?line 88
byte output= 1No comment in source; assigned in getFiscalYear(); used in produce().line 30
double outputGap= 0.0No comment in source; assigned in getFiscalYear().line 83
int plagues= 0No comment in source; not referenced by name in this type’s methods.line 67
double population= 100No comment in source; assigned in getFiscalYear(), harvestCrops(); used in revolt(), produce().line 50
int[] produceTime= new int[MAX_FACTORYS]No comment in source; assigned in reset(), produce().line 46
byte profitPercent= 100No comment in source; name appears in 2 other source file(s): EconomyPane, SetProfit.line 37
byte research= 5Important variablesline 18
int resources= 0No comment in source; not referenced by name in this type’s methods.line 10
int resourcesFound= 0No comment in source; not referenced by name in this type’s methods.line 11
long revenue= 1No comment in source; assigned in getFiscalYear().line 57
int revoltDuration= 0No comment in source; assigned in revoltNow().line 12
byte shelter= 0No comment in source; assigned in getFiscalYear(), revolt(), produce().line 41
int[] shipParts= new int[68]No comment in source; assigned in reset(); used in produce().line 49
int[] socialProgs= new int[4]No comment in source; not referenced by name in this type’s methods.line 53
int stockMarket= 0No comment in source; not referenced by name in this type’s methods.line 72
double[] storedResources= new double[MAX_RESOURCES]No comment in source; assigned in reset(), revolt(), harvestCrops(), eatResources().line 76
int strRow= 0No comment in source; name appears in 1 other source file(s): EconomyPane.line 82
int supplyPath= 0For Trade Routesline 70
byte taxes= 0No comment in source; used in getFiscalYear().line 36
int techLevel= 0No comment in source; used in produce().line 80
double tgrowth= 0.0No comment in source; not referenced by name in this type’s methods.line 83
int tint= 0No comment in source; assigned in getFiscalYear(), revolt(), harvestCrops(), produce().line 84
byte totalFactories= 0No comment in source; assigned in produce(); used in revolt(), eatResources().line 43
double totalMoney= 1.0No comment in source; assigned in getFiscalYear().line 63
int totalPutStrs= 0No comment in source; not referenced by name in this type’s methods.line 81
byte unEmployed= 0No comment in source; assigned in getFiscalYear(); used in revolt(), produce().line 42
int weather= 7No comment in source; assigned in harvestCrops().line 14
int year= 1No comment in source; assigned in getFiscalYear().line 15

Constructors (2)

SignatureDescriptionSource
Economy()1 statement(s); calls super().line 92
Economy(EconomyPane tPane)4 statement(s); calls super(), reset().line 97

Methods (7)

SignatureDescriptionSource
int eatResources(int totalFactories)4 statement(s).line 747
public int getFiscalYear()36 statement(s); calls economyPane.queString(), curView.rand(), this.revoltNow(), revolt().line 130
public int harvestCrops()27 statement(s); calls economyPane.queString(), curView.rand(), revoltNow().line 388
public int produce()20 statement(s); calls economyPane.queString(), this.eatResources(), Math.abs().line 568
public void reset()2 statement(s).line 106
public void revolt()14 statement(s); calls curView.rand(), curView.sRand(), economyPane.queString().line 320
public void revoltNow()4 statement(s); calls economyPane.queString(), curView.rand().line 560

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

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;
Hits--