Jason Long
d0fbfd92a2
tile-names: BuildingInfo: allow dyn-numbered tiles
2014-09-21 16:42:30 -04:00
Jason Long
f136a3f4f4
tile-names: let loadMap() handle dyn-numbered tiles
2014-09-21 16:37:48 -04:00
Jason Long
3597e11bbd
tile-names: teach GUI how to load images for dyn-numbered tiles
...
(this only handles the main view, it does not do anything for the overlay view)
2014-09-21 16:37:37 -04:00
Jason Long
7b890e9d89
tiles: add name property to spec
2014-06-16 20:31:59 -04:00
jason@long.name
bde6014165
docs: document the Tiles class
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@919 d9718cc8-9f43-0410-858b-315f434eb58c
2014-03-05 01:58:31 +00:00
jason@long.name
ae13414b34
refactor: make TileSpec do its own reference resolving
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@905 d9718cc8-9f43-0410-858b-315f434eb58c
2013-12-14 22:10:21 +00:00
jason@long.name
447a78b4d7
tiles: keep a mapping of tile names to the tile spec
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@904 d9718cc8-9f43-0410-858b-315f434eb58c
2013-12-14 22:10:14 +00:00
jason@long.name
2b093b3273
tiles.rc: dynamically determine number of tiles
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@903 d9718cc8-9f43-0410-858b-315f434eb58c
2013-12-14 22:10:06 +00:00
jason@long.name
eb76937e2c
copyright: add copyright notices to source files missing it
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@866 d9718cc8-9f43-0410-858b-315f434eb58c
2013-09-28 20:23:22 +00:00
jason@long.name
521a41f028
tiles.rc: use description numbers from tiles.rc rather than hardcoded numbers
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@821 d9718cc8-9f43-0410-858b-315f434eb58c
2013-09-01 16:32:25 +00:00
jason@long.name
52512c8987
tiles.rc: annotate each tile with its description number
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@820 d9718cc8-9f43-0410-858b-315f434eb58c
2013-09-01 16:32:14 +00:00
jason@long.name
fb6db46fde
tiles: remove old isIndustrialZone() function
...
Note: this old Industrial Zone checking function would erroneously
include the Coal power plant animated smoke.
You could see this bug by selecting "industrial zones" for the
overlay map, and looking closely where your coal power plants are.
You will see that the coal power plant is invisible in the overlay
except for the four tiles containing the smoke.
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@816 d9718cc8-9f43-0410-858b-315f434eb58c
2013-09-01 00:26:44 +00:00
jason@long.name
14944850b7
tiles: annotate industrial zone tiles
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@815 d9718cc8-9f43-0410-858b-315f434eb58c
2013-09-01 00:26:29 +00:00
jason@long.name
4c66df859f
buildings: allow defining anim tiles as belonging to a building
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@814 d9718cc8-9f43-0410-858b-315f434eb58c
2013-09-01 00:26:16 +00:00
jason@long.name
7069c8150c
buildings: for component tiles, link back to the owner tile
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@811 d9718cc8-9f43-0410-858b-315f434eb58c
2013-09-01 00:25:39 +00:00
jason@long.name
0c497aa434
tile animation: use tiles.rc to control termination of coal plant smoke
...
when the coal plant is killed
Also, this sets up a framework to handle industrial zones in the same way.
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@759 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-20 21:35:05 +00:00
jason@long.name
ba7ade2fa4
tile-animation: let tiles.rc determine coal plant's smoke animation
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@757 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-20 21:34:58 +00:00
jason@long.name
22c0edc7c1
tiles.rc syntax: allow inheriting of another tile's images/attributes
...
To inherit, just put the name of tile you want to inherit from in parenthesis
at the beginning of the specification.
E.g.
road-1-1 (road) roads/1-1 (road-north)(road-south)
will define a tile named "road-1-1", which first starts with all the images
and properties of tile "road" and then layers on top of that the 'road/1-1'
image, and then sets the 'road-north' and 'road-south' flags.
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@754 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-20 21:29:47 +00:00
jason@long.name
9bf2e91783
tile animation: synthesize ANIMBIT when saving (for compatibility)
...
Also, add some safety checks in case Tiles.get() is called with an out-of-range tile number.
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@739 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-18 13:31:50 +00:00
jason@long.name
3859ca16d7
tile animation: animation is now controlled by tiles.rc
...
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@732 d9718cc8-9f43-0410-858b-315f434eb58c
2013-07-17 20:11:54 +00:00