Commit graph

443 commits

Author SHA1 Message Date
Jason Long
963a51624b animation: make nuclear swirl an animation 2014-09-21 16:37:47 -04:00
Jason Long
a792b770c4 animation: make airport radar an animation 2014-09-21 16:37:46 -04:00
Jason Long
40d2d08e0c animation: make all fires synchronized
(so that it can be represented as a single tile number, which is then animated)
2014-09-21 16:37:45 -04:00
Jason Long
ddd72b44e8 debug: giev more information on assertion failures 2014-09-21 16:37:45 -04:00
Jason Long
2d60c5d4fb animation: make FIRE an animation 2014-09-21 16:37:44 -04:00
Jason Long
4dc9194fe4 TileImages: auto-redraw animated tiles 2014-09-21 16:37:44 -04:00
Jason Long
9c5c41e0f4 TileImages: draw animated frames
(still need to implement redrawing of animated frames)
2014-09-21 16:37:43 -04:00
Jason Long
48cd74c977 TileImages: use experimental "fountain.ini" animation file 2014-09-21 16:37:43 -04:00
Jason Long
0d6f6d4789 TileImages: put placeholder for animated tile support 2014-09-21 16:37:42 -04:00
Jason Long
8acf22d790 MakeTiles: Animation: draw the frames for different times during the animation 2014-09-21 16:37:42 -04:00
Jason Long
56a4b3da27 MakeTiles: refactor: move TileImage classes into separate file 2014-09-21 16:37:41 -04:00
Jason Long
372c1a6519 MakeTiles: fix a couple bugs in code for loading animation 2014-09-21 16:37:41 -04:00
Jason Long
41c8d68717 MakeTiles: working on support for animated tiles 2014-09-21 16:37:40 -04:00
Jason Long
de82160792 MakeTiles: refactor: paving the way to allow multiple images per tile 2014-09-21 16:37:40 -04:00
Jason Long
d5dbd8dc64 MakeTiles: track target size when loading a source image 2014-09-21 16:37:39 -04:00
Jason Long
70bb50fed2 MakeTiles: implement support for files specifying an animation 2014-09-21 16:37:39 -04:00
Jason Long
2ea3318dea MakeTiles: make tile drawing code more object-orientated
Separate classes for tile layers, tile sprites, etc., to make it easier
to introduce more complicated/flexible tile configurations in the future.
2014-09-21 16:37:38 -04:00
Jason Long
2791a5658a TileImages: allow loading a named tiles pack...
and make the overlay map use the 'sm' mapping
2014-09-21 16:37:38 -04:00
Jason Long
2112ee04f0 MakeTiles: change format of tiles.idx (preparing for future capability) 2014-09-21 16:37:37 -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
70d5d31aa5 MakeTiles: use an XML format for the tiles index
this will allow me to more easily add features (like animation)
without evolving into a hard-to-parse custom file format
2014-09-21 16:37:36 -04:00
Jason Long
9b769d17b3 file-format: throw an exception if an unrecognized tile id is seen 2014-09-21 16:37:36 -04:00
Jason Long
71790c078f file-format: use tile names instead of numbers (load)
in addition, use :pwr suffix for any tile where the PWR bit is set
2014-09-21 16:37:35 -04:00
Jason Long
3a16d982a4 file-format: use tile names instead of numbers (write only) 2014-09-21 16:37:35 -04:00
Jason Long
da7b30af88 file-format: do not synthesize compatibility bits
since there's no software we need to be compatible with
2014-09-21 16:37:34 -04:00
Jason Long
4a0cfc2bcc file-format: move timing information into <cityTime> child element 2014-09-21 16:37:33 -04:00
Jason Long
98a2b4b007 file-format: keep misc sanity checks in place 2014-09-21 16:37:33 -04:00
Jason Long
95155a579f file-format: save/restore the "noDisasters" option 2014-09-21 16:37:32 -04:00
Jason Long
8ac2e902bc file-format: markup history with <shortTerm> and <longTerm> 2014-09-21 16:37:32 -04:00
Jason Long
78bddb83fe file-format: check gameLevel against range when reading from xml 2014-09-21 16:37:31 -04:00
Jason Long
f17021066a file-format: move taxRate and budget levels from <misc> to <budget> 2014-09-21 16:37:31 -04:00
Jason Long
4ee34ba245 file-format: use Boolean.toString rather than hardcoding "true"/"false" 2014-09-21 16:37:30 -04:00
Jason Long
e7207b1839 file-format: fix a bug in XML_Helper 2014-09-21 16:37:30 -04:00
Jason Long
e9e7425701 file-format: complete XML load implementation 2014-09-21 16:37:29 -04:00
Jason Long
481417e5ee file-format: ability to read in history arrays from xml 2014-09-21 16:37:29 -04:00
Jason Long
69bf269655 file-format: writeMap() use tags to indicate where new rows start 2014-09-21 16:37:28 -04:00
Jason Long
a3d2c1f441 file-format: rewrite save() to use a new XML-based file format
a file format that I just made up
2014-09-21 16:37:28 -04:00
Jason Long
6ccc6339fc cleanup: consolidate to a single isIndestructible() predicate 2014-09-21 16:35:00 -04:00
Jason Long
89e1b04f95 rewrite repairZone to handle dynamic tiles
also- fix a bug where repairZone() on an unpowerd zone
was incorrect
2014-09-21 16:34:50 -04:00
Jason Long
bbfc73961c cleanup: eliminate unused isHospitalOrChurch() function 2014-09-21 16:30:26 -04:00
Jason Long
d4a80ec466 cleanup: rename isRoadAny() to isRoad()... ditto for isRailAny() 2014-09-21 16:28:02 -04:00
Jason Long
1da5fdf402 cleanup: remove unused isRoad, isRail methods 2014-09-21 15:55:56 -04:00
Jason Long
ef5635f6a3 Sprite: destroyTile() should not destroy tunnels or underwater wires 2014-09-21 15:54:05 -04:00
Jason Long
ac1dc2bf92 Sprite: cleanup logic for how to destroy a tile
and remove the dependency on tile numbers
2014-09-21 15:53:34 -04:00
Jason Long
f944e5293c evalLot: fix so that railroads with wires are recognized as rails 2014-09-21 14:37:47 -04:00
Jason Long
6604b266aa tiles: eliminate redundant predicate checkWet in favor of isOverWater 2014-09-21 14:37:29 -04:00
Jason Long
bf25532d01 gui: draw tool cursor using fillRect rather than drawLine
this should help with higher-resolution displays where the stroke
behavior can be unpredictable. It works better to use filled
shapes which are more predictable.
2014-08-23 10:08:19 -07:00
Jason Long
d6a295cbe7 drawing-order: draw tiles right-to-left
to handle tall tiles correctly
2014-08-23 10:08:03 -07:00
jason17055
4336dbf5e7 Merge pull request #2 from ignatio/master
Changed Shipsprite to only cause wrecks when disasters are enabled
2014-07-29 20:51:54 -04:00
ignatio
bdf41b12fb Fixed Shipwrecks
Shipwrecks only occur when disasters are enabled, similar to plane
crashes.
2014-06-28 13:16:37 -04:00