Commit graph

41 commits

Author SHA1 Message Date
jason@long.name
b0bd5bab21 cleanup: fix really minor typo in comment
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@572 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-23 12:54:04 +00:00
jason@long.name
d9d42b1af2 cleanup: change Animate.Smoke.AniThis to a boolean array
since it only holds true/false values

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@571 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-23 12:53:57 +00:00
jason@long.name
84fa05500b javadocs: explain a little more about draw bridges
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@570 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-23 12:53:51 +00:00
jason@long.name
4158265409 cleanup: make macros isRoad and isRail to test for those tile types
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@569 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-23 12:53:44 +00:00
jason@long.name
89d6839101 cleanup: rename fireZone to killZone
since the function is not about setting fire to a zone,
rather it is about nullifying the ability of the zone

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@568 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-20 02:05:04 +00:00
jason@long.name
1da609a5ce coalsmoke: when coal plant blows up, stop its smoke animation
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@567 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-20 02:04:58 +00:00
jason@long.name
aadacd9210 coalplant- do not eliminate fire when animating smoke
This changes the behavior of a coal plant on fire.
Previously, if the smoke tiles were on fire when the coal plant
is activated, the coalSmoke() function would replace the fire tiles
with the animated smoke.

Now, the animated smoke tiles are only set when the tiles are
the original coal plant tiles.  Fire needs to burn itself out,
the rubble must be bulldozed, then the plant must call repairZone()
for itself, and only then will the animated smoke be added back in.

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@566 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-20 02:04:51 +00:00
jason@long.name
4fe20e253e javadocs: document the BudgetNumbers class
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@565 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-20 01:36:57 +00:00
jason@long.name
4b145e0682 javadocs: document the ZoneStatus class
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@564 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-20 01:36:50 +00:00
jason@long.name
d21f73e186 TrafficGen: s/engine/city for consistency with MapScanner class
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@563 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-20 01:36:43 +00:00
jason@long.name
fb2f73c008 cleanup: eliminate TrafficGen.Position in favor of CityLocation
Two classes that did the same thing for the same purpose.

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@562 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-20 01:36:36 +00:00
jason@long.name
41e1321edc javadoc: fix typo that prevented docs for setSmoke() from being parsed
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@561 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 02:43:08 +00:00
jason@long.name
e9ec153278 TODO- document another task that needs looked at some day
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@560 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:58:36 +00:00
jason@long.name
16ad436a14 internal docs: explain fire as source of pollution
in getPollutionValue() function

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@559 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:58:29 +00:00
jason@long.name
908ff0b5a1 cleanup: drawStadium: use xpos,ypos properties instead of function arguments
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@558 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:58:21 +00:00
jason@long.name
8614e6ff0e cleanup: rename incrementROG to adjustROG and document it
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@557 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:58:15 +00:00
jason@long.name
c48abf0bca cleanup: coalSmoke: use xpos,ypos properties instead of function arguments
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@556 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:58:08 +00:00
jason@long.name
8e9902ef64 cleanup: getCRValue: document and use xpos,ypos properties
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@555 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:58:01 +00:00
jason@long.name
ae95b98980 cleanup: evalResidential, etc: use xpos,ypos properties instead of arguments
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@554 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:57:54 +00:00
jason@long.name
52365e4c35 cleanup: zonePlop: use xpos,ypos properties instead of parameters
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@553 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:57:48 +00:00
jason@long.name
8572c30c60 cleanup: comPlop,indPlop,residentialPlop: use xpos,ypos properties
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@552 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:57:41 +00:00
jason@long.name
d2066409b9 cleanup: make buildHouse() use xpos,ypos properties not parameters
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@551 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:57:35 +00:00
jason@long.name
deb9738b6f cleanup: repairZone: use zoneBase variable to place tiles
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@550 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:57:27 +00:00
jason@long.name
de8b27d10a cleanup: repairZone should use xpos,ypos properties
instead of using function parameters

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@549 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:57:21 +00:00
jason@long.name
889676d9e2 cleanup: doCommericial, doIndustrial, use xpos,ypos properties
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@548 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:57:11 +00:00
jason@long.name
273620b6c5 cleanup: doResidential{In,Out} use xpos,ypos properties
instead of having them be passed in as parameters

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@547 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:57:04 +00:00
jason@long.name
e2c1a7eb6a cleanup: setSmoke should use xpos,ypos properties
instead of requiring them to be passed in as parameters

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@546 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:56:54 +00:00
jason@long.name
a92a5d6107 javadocs: document CityLocation, CityEval, and MapGenerator classes
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@545 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:56:47 +00:00
jason@long.name
9bf7a9d8ec javadocs: document methods of the Sprite class
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@544 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:56:41 +00:00
jason@long.name
beb640e2e8 cleanup: make Animate class private to the package
since it has no utility outside of the engine itself

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@543 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:56:34 +00:00
jason@long.name
feb04ae09a javadocs: document methods in the MapScanner class
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@542 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:56:29 +00:00
jason@long.name
082d752c21 TODO/FIXME- document some tasks that need to be looked at later
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@541 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-18 01:56:22 +00:00
jason@long.name
0255ae0744 cleanup: remove duplicate definitions of min/max game level
i.e.
removed Micropolis.MIN_LEVEL and Micropolis.MAX_LEVEL
as it was superceded by
GameLevel.MIN_LEVEL and GameLevel.MAX_LEVEL

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@540 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-17 20:58:31 +00:00
jason@long.name
9943df80f4 javadocs: explain what the simulator's internal arrays do
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@539 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-17 20:58:24 +00:00
jason@long.name
50a7cf4770 cleanup: refactor smoothTerrain() to make it side-effect free
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@538 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-17 20:58:17 +00:00
jason@long.name
567adeee43 cleanup: make qtem a local instead of global variable
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@537 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-17 20:58:10 +00:00
jason@long.name
9cedc10ef8 cleanup: make tem[] a local variable instead of global
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@536 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-17 20:58:03 +00:00
jason@long.name
99234bebc2 NewCityDialog: call makeClean() so title bar gets updated
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@535 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-17 20:57:55 +00:00
jason@long.name
db46ae46a7 update README file to explain how to run the program
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@530 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-15 15:24:36 +00:00
jason@long.name
ed6795dfca Importing source code for MicropolisJ, the Java rewrite of Micropolis.
This edition of Micropolis, written for the Java desktop platform,
is fairly feature complete. I believe the only missing functionality
is that of loading the built-in scenarios, and this can be implemented
if there is any demand for it.

I will soon update the home page at http://code.google.com/p/micropolis/
with downloadable packages of this edition of the software.


git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@528 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-14 21:02:42 +00:00
jason@long.name
99e2b7dd01 create top-level directory to hold the new Java-edition of Micropolis
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@527 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-14 20:51:42 +00:00