File:  [Micropolis - Activity] / micropolis / src / notes / SharedData
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed Mar 11 09:08:51 2020 UTC (6 years, 4 months ago) by root
Branches: donhopkins, MAIN
CVS tags: activity, HEAD
Micropolis Activity

* Notes:
do tile animation in parallel - tileSynch
maps on demand

* Initialize at start of game:

short mickStartingYear;
extern char *cityName;
extern char *CityFileName;
extern short GameLevel;

* Share data:

** global
long CityTime;
short *Map[WORLD_X];
** editor window
short Oframe[OBJN];
short GlobalX[OBJN];
short GlobalY[OBJN];
long totalFunds;
short RValve, CValve, IValve;
** map window
short *PowerMap;
Byte *PopDensity[HWLDX];		/* 2X2 Maps  60 x 50 */
Byte *TrfDensity[HWLDX];
Byte *PollutionMem[HWLDX];
Byte *LandValueMem[HWLDX];
Byte *CrimeMem[HWLDX];
short RateOGMem[SmX][SmY];
short PoliceMapEffect[SmX][SmY];
short FireRate[SmX][SmY];
** graph window
short ResHisMax, Res2HisMax;
short ComHisMax, Com2HisMax;
short IndHisMax, Ind2HisMax;
short *ResHis;
short *ComHis;
short *IndHis;
short *MoneyHis;
short *PollutionHis;
short *CrimeHis;
short *MiscHis;
short Graph10Max, Graph120Max;
short Res2HisMax, Com2HisMax, Ind2HisMax;
** evaluation window
** budget window
short CityTax;
long RoadSpend, PoliceSpend, FireSpend;
long RoadFund, PoliceFund, FireFund;
float roadPercent, policePercent, firePercent;
long roadMaxValue, policeMaxValue, fireMaxValue;
long TaxFund, RoadFund, PoliceFund, FireFund;


* Messages
censusChanged
message(msg, x, y)
earthquake
newMap

formalize all global variable setter functions, to go through tcl

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.