Jason Long
d0fbfd92a2
tile-names: BuildingInfo: allow dyn-numbered tiles
2014-09-21 16:42:30 -04:00
Jason Long
060222a9c1
tools: limit tools for most buildings to a single building at a time
...
buildings like power plants, stadiums, etc. must be placed one at a time
now
2014-06-23 15:49:45 -04:00
jason@long.name
454409cecf
tiles.rc: eliminate BULLBIT and use annotation instead
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@894 d9718cc8-9f43-0410-858b-315f434eb58c
2013-12-06 16:01:48 +00:00
jason@long.name
7b68e1299d
android port: convert use of java.awt.Rectangle to own CityRect class
...
java.awt.Rectangle does not exist in the android SDK, so this patch
replaces its use within the Micropolis engine code with a custom class
with equivalent functionality.
This way all the classes in micropolisj.engine can be compiled with
the subset of the Java SDK that also exists in the Android SDK.
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@853 d9718cc8-9f43-0410-858b-315f434eb58c
2013-09-09 14:11:55 +00:00
jason@long.name
b22263b4b6
applyZone: rewrite to use tiles.rc annotations
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@841 d9718cc8-9f43-0410-858b-315f434eb58c
2013-09-05 11:22:09 +00:00
jason@long.name
e5e76834f6
cleanup: remove a couple lines of code not needed
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@793 d9718cc8-9f43-0410-858b-315f434eb58c
2013-08-12 02:37:07 +00:00
jason@long.name
9c6e987f65
cleanup: remove no-longer-used isBigZone()
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@786 d9718cc8-9f43-0410-858b-315f434eb58c
2013-08-11 22:43:09 +00:00
jason@long.name
d60bbad2e1
TileConstants: continue moving tile number logic to central location (rails and wires)
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@782 d9718cc8-9f43-0410-858b-315f434eb58c
2013-08-11 04:07:14 +00:00
jason@long.name
b4f7e09d74
TileConstants: move tile number comparisons to central location (road numbers)
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@781 d9718cc8-9f43-0410-858b-315f434eb58c
2013-08-11 04:07:11 +00:00
jason@long.name
68717e3ea6
tiles.rc: move CONDBIT knowledge from source code to tiles.rc
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@746 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-20 21:10:50 +00:00
jason@long.name
c2cfeb540c
tiles.rc: move BURNBIT knowledge from source code to tiles.rc
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@743 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-20 21:10:40 +00:00
jason@long.name
0a65ac514c
TileConstants: replace BLBN, BLBNCN, BNCN constants with definitions
...
This will make it easier to find and replace uses of BULLBIT, BURNBIT, and
CONDBIT.
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@741 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-20 21:10:34 +00:00
jason@long.name
91b3736886
tiles: transfer ZONEBIT knowledge to tiles.rc
...
and synthesize ZONEBIT when saving (for compatibility)
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@740 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-20 21:10:29 +00:00
jason@long.name
000036c303
tile animation: cleanup, remove obsolete ANIMBIT constant
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@737 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-17 20:59:06 +00:00
jason@long.name
599ea026f3
cleanup: move neutralizeRoad() to TileConstants
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@683 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-28 01:55:17 +00:00
jason@long.name
47fdf7c3c2
toolstroke: do not pick random numbers when generating a tool preview
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@647 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:46:09 +00:00
jason@long.name
52794b9c25
toolstroke: show the tool's effect as a preview when mouse is down
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@645 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:45:35 +00:00
jason@long.name
082e05f63c
toolstroke: fix how tool results are reported
...
also, fix query tool functionality
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@643 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:45:13 +00:00
jason@long.name
1b19af8057
toolstroke: add sound support for tooleffect class
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@642 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:44:54 +00:00
jason@long.name
4d3649884d
toolstroke: convert apply1 method
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@641 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:44:44 +00:00
jason@long.name
8c5d7c1ba8
toolstroke: replace apply3x3, etc. functions with generic applyZone()
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@640 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:44:35 +00:00
jason@long.name
5c85cd0a64
toolstroke: continue refactoring for ToolEffect
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@636 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:44:03 +00:00
jason@long.name
5b5e278393
toolstroke: apply ToolEffect-conversion to fixZone()
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@635 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:43:46 +00:00
jason@long.name
00738461cb
toolstroke: convert fixSingle to use ToolEffect class
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@633 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:42:30 +00:00
jason@long.name
eb63e3817a
ToolStroke: update Park tool to use new ToolEffect class
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@632 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:42:21 +00:00
jason@long.name
f6b55fa380
toolstroke: separate class for road-like tools
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@628 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:41:49 +00:00
jason@long.name
0fe2c2fe1d
toolstroke: move bulldozer tool code to a separate file
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@627 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:41:40 +00:00
jason@long.name
6e585924a7
toolstroke: start implementing a check() method
...
This checks the overall result of applying a tool to see if there's
enough money for the whole operating, before applying any of it.
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@626 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:41:33 +00:00
jason@long.name
0f0d063957
toolstroke: rename getPreview to getBounds
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@625 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:41:24 +00:00
jason@long.name
86a2f05201
toolstroke: on mouse up, fill the selected area with the tool
...
also- for roads, rails, and wires, force the selected area to be
single-unit width or height.
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@624 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:36:36 +00:00
jason@long.name
67e7792be5
toolstroke: apply at end of mouse click, show drag preview
...
not completely there yet
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@623 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:36:27 +00:00
jason@long.name
c4fe7f0d34
toolstroke: refactor- do not pass engine variable to every function
...
since it is a class property
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@622 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:36:19 +00:00
jason@long.name
6438791974
toolstroke: cleanup: rename 'engine' variable to 'city' variable
...
for consistency
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@621 d9718cc8-9f43-0410-858b-315f434eb58c
2013-05-16 23:36:11 +00:00
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