Commit graph

10 commits

Author SHA1 Message Date
jason@long.name
8901474800 toolstroke: new class to represent the application of a tool
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@620 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:36:00 +00:00
jason@long.name
7d2b2fdda5 cleanup: move autobulldoze-testing functions to TileConstants
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@619 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-08 02:11:35 +00:00
jason@long.name
36f056087e cleanup: make both canAutoBulldoze have same logic
formerly, tiles LASTTINYEXP+1 and LASTTINYEXP+2 were considered
auto-bulldozable only when laying zones. This inconsistency is
not necessary, since LASTTINYEXP+1 and LASTTINYEXP+2 are unused values

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@618 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-05 19:03:04 +00:00
jason@long.name
04534d6273 refactor: move totalFunds property to separate class
this new class (CityBudget) will contain all finance-related balances

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@600 d9718cc8-9f43-0410-858b-315f434eb58c
2013-03-23 15:45:37 +00:00
jason@long.name
9c5b1fca33 cleanup: no longer need the autoDoze function
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@592 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-27 01:30:36 +00:00
jason@long.name
21ecd20092 autobulldoze: fix behavior of road and rail tools
now when there's not enough money to build a rail or road,
the auto-bulldoze will not have any effect

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@591 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-27 01:30:30 +00:00
jason@long.name
408d3d44bf autobulldoze- fix behavior of wire tool
now when there's not enough money to build wire, the auto-bulldoze
will not have any effect

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@590 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-27 01:30:23 +00:00
jason@long.name
d10ec8e5b1 cleanup: rename canAutoBulldoze to canAutoBulldozeZ
since this method is only for when a ZONE is being placed (Z=Zone)

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@589 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-27 01:30:17 +00:00
jason@long.name
8b428bfc29 autobulldoze: prepare for movement of auto-bulldoze code
When road/rail/wire tool is used, auto-bulldozing occurs before checking
the cost of the road/rail/wire being placed. This means when the user
is low on funds, the wire tool may end up bulldozing only, even though
there is not enough money for building what they want.

This patch prepares the way for moving where the auto-bulldoze check
is done in the case of the road/rail/wire tool.

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@588 d9718cc8-9f43-0410-858b-315f434eb58c
2013-02-27 01:30:10 +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