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
This commit is contained in:
jason@long.name 2013-02-14 21:02:42 +00:00
parent 99e2b7dd01
commit ed6795dfca
189 changed files with 13184 additions and 0 deletions

View file

@ -0,0 +1,138 @@
!! This file is part of MicropolisJ.
!! Copyright (C) 2013 Jason Long
!! Portions Copyright (C) 1989-2007 Electronic Arts Inc.
!!
!! MicropolisJ is free software; you can redistribute it and/or modify
!! it under the terms of the GNU GPLv3, with additional terms.
!! See the README file, included in this distribution, for details.
NEED_RES = More residential zones needed.
NEED_COM = More commercial zones needed.
NEED_IND = More industrial zones needed.
NEED_ROADS = More roads required.
NEED_RAILS = Inadequate rail system.
NEED_POWER = Build a Power Plant.
NEED_STADIUM = Residents demand a Stadium.
NEED_SEAPORT = Industry requires a Sea Port.
NEED_AIRPORT = Commerce requires an Airport.
HIGH_POLLUTION = Pollution very high.
HIGH_CRIME = Crime very high.
HIGH_TRAFFIC = Frequent traffic jams reported.
NEED_FIRESTATION = Citizens demand a Fire Department.
NEED_POLICE = Citizens demand a Police Department.
BLACKOUTS = Blackouts reported. Check power map.
HIGH_TAXES = Citizens upset. The tax rate is too high.
ROADS_NEED_FUNDING = Roads deteriorating, due to lack of funds.
FIRE_NEED_FUNDING = Fire departments need funding.
POLICE_NEED_FUNDING = Police departments need funding.
FIRE_REPORT = Fire reported !
MONSTER_REPORT = A Monster has been sighted !!
TORNADO_REPORT = Tornado reported !!
EARTHQUAKE_REPORT = Major earthquake reported !!
PLANECRASH_REPORT = A plane has crashed !
SHIPWRECK_REPORT = Shipwreck reported !
TRAIN_CRASH_REPORT = A train crashed !
COPTER_CRASH_REPORT = A helicopter crashed !
HIGH_UNEMPLOYMENT = Unemployment rate is high.
OUT_OF_FUNDS_REPORT = YOUR CITY HAS GONE BROKE!
FIREBOMBING_REPORT = Firebombing reported !
NEED_PARKS = Need more parks.
EXPLOSION_REPORT = Explosion detected !
INSUFFICIENT_FUNDS = Insufficient funds to build that.
BULLDOZE_FIRST = Area must be bulldozed first.
POP_2K_REACHED = Population has reached 2,000.
POP_10K_REACHED = Population has reached 10,000.
POP_50K_REACHED = Population has reached 50,000.
POP_100K_REACHED = Population has reached 100,000.
POP_500K_REACHED = Population has reached 500,000.
BROWNOUTS_REPORT = Brownouts, build another Power Plant.
HEAVY_TRAFFIC_REPORT = Heavy Traffic reported.
FLOOD_REPORT = Flooding reported !!
MELTDOWN_REPORT = A Nuclear Meltdown has occurred !!!
RIOTING_REPORT = They're rioting in the streets !!
NO_NUCLEAR_PLANTS = Cannot meltdown. Build a nuclear power plant first.
HIGH_POLLUTION.title = POLLUTION ALERT!
HIGH_POLLUTION.color = #ff4f4f
HIGH_POLLUTION.detail = Pollution in your city has exceeded the maximum allowable amounts established by the Micropolis Pollution Agency. You are running the risk of grave ecological consequences.<br><br>Either clean up your act or open a gas mask concession at city hall.
HIGH_CRIME.title = CRIME ALERT!
HIGH_CRIME.color = #ff4f4f
HIGH_CRIME.detail = Crime in your city is out of hand. Angry mobs are looting and vandalizing the central city. The president will send in the national guard soon if you cannot control the problem.
HIGH_TRAFFIC.title = TRAFFIC WARNING!
HIGH_TRAFFIC.color = #ff4f4f
HIGH_TRAFFIC.detail = Traffic in this city is horrible. The city gridlock is expanding. The commuters are getting militant.<br><br>Either build more roads and rails or get a bulletproof limo.
FIRE_REPORT.title = FIRE REPORTED!
FIRE_REPORT.color = #ff4f4f
FIRE_REPORT.detail = A fire has been reported!
MONSTER_REPORT.title = MONSTER ATTACK!
MONSTER_REPORT.color = #ff4f4f
MONSTER_REPORT.detail = A large reptilian creature has been spotted in the water. It seems to be attracted to areas of high pollution. There is a trail of destruction wherever it goes.<br>All you can do is wait till he leaves, then rebuild from the rubble.
TORNADO_REPORT.title = TORNADO ALERT!
TORNADO_REPORT.color = #ff4f4f
TORNADO_REPORT.detail = A tornado has been reported! There's nothing you can do to stop it, so you'd better prepare to clean up after the disaster!
EARTHQUAKE_REPORT.title = EARTHQUAKE!
EARTHQUAKE_REPORT.color = #ff4f4f
EARTHQUAKE_REPORT.detail = A major earthquake has occurred! Put out the fires as quickly as possible, before they spread, then reconnect the power grid and rebuild the city.
PLANECRASH_REPORT.title = PLANE CRASH!
PLANECRASH_REPORT.color = #ff4f4f
PLANECRASH_REPORT.detail = A plane has crashed!
SHIPWRECK_REPORT.title = SHIPWRECK!
SHIPWRECK_REPORT.color = #ff4f4f
SHIPWRECK_REPORT.detail = A ship has wrecked!
TRAIN_CRASH_REPORT.title = TRAIN CRASH!
TRAIN_CRASH_REPORT.color = #ff4f4f
TRAIN_CRASH_REPORT.detail = A train has crashed!
COPTER_CRASH_REPORT.title = HELICOPTER CRASH!
COPTER_CRASH_REPORT.color = #ff4f4f
COPTER_CRASH_REPORT.detail = A helicopter has crashed!
FIREBOMBING_REPORT.title = FIREBOMBING REPORTED!
FIREBOMBING_REPORT.color = #ff4f4f
FIREBOMBING_REPORT.detail = Firebombs are falling!!
POP_2K_REACHED.title = TOWN
POP_2K_REACHED.color = #7fff7f
POP_2K_REACHED.detail = Congratulations, your village has grown to town status. You now have 2,000 citizens.
POP_10K_REACHED.title = CITY
POP_10K_REACHED.color = #7fff7f
POP_10K_REACHED.detail = Your town has grown into a full sized city, with a current population of 10,000. Keep up the good work!
POP_50K_REACHED.title = CAPITAL
POP_50K_REACHED.color = #7fff7f
POP_50K_REACHED.detail =Your city has become a capital. The current population here is 50,000. Your political future looks bright.
POP_100K_REACHED.title = METROPOLIS
POP_100K_REACHED.color = #7fff7f
POP_100K_REACHED.detail = Your capital city has now achieved the status of metropolis. The current population is 100,000. With your management skills, you should seriously consider running for governor.
POP_500K_REACHED.title = MEGALOPOLIS
POP_500K_REACHED.color = #7fff7f
POP_500K_REACHED.detail = Congratulation, you have reached the highest category of urban development, the megalopolis.
HEAVY_TRAFFIC_REPORT.title = HEAVY TRAFFIC!
HEAVY_TRAFFIC_REPORT.color = #ff4f4f
HEAVY_TRAFFIC_REPORT.detail = Sky Watch One<br>reporting heavy traffic!
FLOOD_REPORT.title = FLOODING REPORTED!
FLOOD_REPORT.color = #ff4f4f
FLOOD_REPORT.detail = Flooding has been been reported along the water's edge!
MELTDOWN_REPORT.title = NUCLEAR MELTDOWN!
MELTDOWN_REPORT.color = #ff4f4f
MELTDOWN_REPORT.detail = A nuclear meltdown has occurred at your power plant. You are advised to avoid the area until the radioactive isotopes decay.<br><br>Many generations will confront this problem before it goes away, so don't hold your breath.
RIOTING_REPORT.title = RIOTS!
RIOTING_REPORT.color = #ff4f4f
RIOTING_REPORT.detail = The citizens are rioting in the streets, setting cars and houses on fire, and bombing government buildings and businesses!<br><br>All media coverage is blacked out, while the fascist pigs beat the poor citizens into submission.

View file

@ -0,0 +1,26 @@
!! This file is part of MicropolisJ.
!! Copyright (C) 2013 Jason Long
!! Portions Copyright (C) 1989-2007 Electronic Arts Inc.
!!
!! MicropolisJ is free software; you can redistribute it and/or modify
!! it under the terms of the GNU GPLv3, with additional terms.
!! See the README file, included in this distribution, for details.
problem.CRIME = CRIME
problem.POLLUTION = POLLUTION
problem.HOUSING = HOUSING COSTS
problem.TAXES = TAXES
problem.TRAFFIC = TRAFFIC
problem.UNEMPLOYMENT = UNEMPLOYMENT
problem.FIRE = FIRES
class.0 = VILLAGE
class.1 = TOWN
class.2 = CITY
class.3 = CAPITAL
class.4 = METROPOLIS
class.5 = MEGALOPOLIS
level.0 = Easy
level.1 = Medium
level.2 = Hard

View file

@ -0,0 +1,306 @@
!! This file is part of MicropolisJ.
!! Copyright (C) 2013 Jason Long
!! Portions Copyright (C) 1989-2007 Electronic Arts Inc.
!!
!! MicropolisJ is free software; you can redistribute it and/or modify
!! it under the terms of the GNU GPLv3, with additional terms.
!! See the README file, included in this distribution, for details.
!
! Main window
!
PRODUCT = MicropolisJ
main.save_query = Do you want to save this city?
main.date_label = Date:
main.funds_label = Funds:
main.population_label = Population:
main.error_caption = Error
main.tools_caption = Tools
main.about_caption = About MicropolisJ
main.version_string = Version {0}
main.caption_unnamed_city = MicropolisJ
main.caption_named_city = {0} - MicropolisJ
main.about_text = <html>\
<p>Copyright 2013 Jason Long<br>\
Portions Copyright 1989-2007 Electronic Arts Inc.</p>\
<p>This is free software; you can redistribute it and/or modify it <br>\
under the terms of the GNU GPLv3; see the README file for details.</p>\
<p>There is no warranty, to the extent permitted by law.</p>\
</html>
cty_file = CTY file
funds = ${0,number,integer}
citytime = {0,date,MMM yyyy}
!
! Welcome screen
!
welcome.caption = Welcome to MicropolisJ
welcome.previous_map = Previous Map
welcome.next_map = Next Map
welcome.play_this_map = Play This Map
welcome.load_city = Load City
welcome.cancel = Cancel
welcome.quit = Quit
!
! Menus
!
menu.zones = Zones
menu.zones.ALL = All
menu.zones.RESIDENTIAL = Residential
menu.zones.COMMERCIAL = Commercial
menu.zones.INDUSTRIAL = Industrial
menu.zones.TRANSPORT = Transportation
menu.overlays = Overlays
menu.overlays.POPDEN_OVERLAY = Population Density
menu.overlays.GROWTHRATE_OVERLAY = Rate of Growth
menu.overlays.LANDVALUE_OVERLAY = Land Value
menu.overlays.CRIME_OVERLAY = Crime Rate
menu.overlays.POLLUTE_OVERLAY = Pollution
menu.overlays.TRAFFIC_OVERLAY = Traffic Density
menu.overlays.POWER_OVERLAY = Power Grid
menu.overlays.FIRE_OVERLAY = Fire Coverage
menu.overlays.POLICE_OVERLAY = Police Coverage
menu.game = Game
menu.game.new = New City...
menu.game.load = Load City...
menu.game.save = Save City
menu.game.save_as = Save City as...
menu.game.exit = Exit
menu.options = Options
menu.options.auto_budget = Auto Budget
menu.options.auto_bulldoze = Auto Bulldoze
menu.options.disasters = Disasters
menu.options.sound = Sound
menu.difficulty = Difficulty
menu.difficulty.0 = Easy
menu.difficulty.1 = Medium
menu.difficulty.2 = Hard
menu.disasters = Disasters
menu.disasters.MONSTER = Monster
menu.disasters.FIRE = Fire
menu.disasters.FLOOD = Flood
menu.disasters.MELTDOWN = Meltdown
menu.disasters.TORNADO = Tornado
menu.disasters.EARTHQUAKE = Earthquake
menu.speed = Speed
menu.speed.SUPER_FAST = Super Fast
menu.speed.FAST = Fast
menu.speed.NORMAL = Normal
menu.speed.SLOW = Slow
menu.speed.PAUSED = Paused
menu.windows = Windows
menu.windows.budget = Budget
menu.windows.evaluation = Evaluation
menu.windows.graph = Graph
menu.help = Help
menu.help.about = About
!
! Tools
!
tool.BULLDOZER.name = BULLDOZER
tool.BULLDOZER.icon = /icdozr.png
tool.BULLDOZER.selected_icon = /icdozrhi.png
tool.BULLDOZER.tip = Bulldozer
tool.WIRE.name = WIRE
tool.WIRE.icon = /icwire.png
tool.WIRE.selected_icon = /icwirehi.png
tool.WIRE.tip = Build Powerlines
tool.PARK.name = PARK
tool.PARK.icon = /icpark.png
tool.PARK.selected_icon = /icparkhi.png
tool.PARK.tip = Build Parks
tool.ROADS.name = ROADS
tool.ROADS.icon = /icroad.png
tool.ROADS.selected_icon = /icroadhi.png
tool.ROADS.tip = Build Roads
tool.RAIL.name = RAIL
tool.RAIL.icon = /icrail.png
tool.RAIL.selected_icon = /icrailhi.png
tool.RAIL.tip = Build Tracks
tool.RESIDENTIAL.name = RESIDENTIAL
tool.RESIDENTIAL.icon = /icres.png
tool.RESIDENTIAL.selected_icon = /icreshi.png
tool.RESIDENTIAL.tip = Zone Residential
tool.COMMERCIAL.name = COMMERCIAL
tool.COMMERCIAL.icon = /iccom.png
tool.COMMERCIAL.selected_icon = /iccomhi.png
tool.COMMERCIAL.tip = Zone Commercial
tool.INDUSTRIAL.name = INDUSTRIAL
tool.INDUSTRIAL.icon = /icind.png
tool.INDUSTRIAL.selected_icon = /icindhi.png
tool.INDUSTRIAL.tip = Zone Industrial
tool.FIRE.name = FIRE
tool.FIRE.icon = /icfire.png
tool.FIRE.selected_icon = /icfirehi.png
tool.FIRE.tip = Build Fire Station
tool.POLICE.name = POLICE
tool.POLICE.icon = /icpol.png
tool.POLICE.selected_icon = /icpolhi.png
tool.POLICE.tip = Build Police Station
tool.POWERPLANT.name = POWERPLANT
tool.POWERPLANT.icon = /iccoal.png
tool.POWERPLANT.selected_icon = /iccoalhi.png
tool.POWERPLANT.tip = Build Coal Powerplant
tool.NUCLEAR.name = NUCLEAR
tool.NUCLEAR.icon = /icnuc.png
tool.NUCLEAR.selected_icon = /icnuchi.png
tool.NUCLEAR.tip = Build Nuclear Powerplant
tool.STADIUM.name = STADIUM
tool.STADIUM.icon = /icstad.png
tool.STADIUM.selected_icon = /icstadhi.png
tool.STADIUM.tip = Build Stadium
tool.SEAPORT.name = SEAPORT
tool.SEAPORT.icon = /icseap.png
tool.SEAPORT.selected_icon = /icseaphi.png
tool.SEAPORT.tip = Build Port
tool.AIRPORT.name = AIRPORT
tool.AIRPORT.icon = /icairp.png
tool.AIRPORT.selected_icon = /icairphi.png
tool.AIRPORT.tip = Build Airport
tool.QUERY.name = QUERY
tool.QUERY.icon = /icqry.png
tool.QUERY.selected_icon = /icqryhi.png
tool.QUERY.tip = Query Zone Status
tool.BULLDOZER.border = #bf7900
tool.WIRE.border = #ffff00
tool.ROADS.border = #5d5d5d
tool.RAIL.border = #5d5d5d
tool.RESIDENTIAL.border = #00ff00
tool.COMMERCIAL.border = #0000ff
tool.INDUSTRIAL.border = #ffff00
tool.FIRE.border = #ff0000
tool.POLICE.border = #0000ff
tool.STADIUM.border = #00ff00
tool.PARK.border = #bf7900
tool.SEAPORT.border = #0000ff
tool.POWERPLANT.border = #ffff00
tool.NUCLEAR.border = #ffff00
tool.AIRPORT.border = #bf7900
tool.BULLDOZER.bgcolor = rgba(0,0,0,0)
tool.WIRE.bgcolor = rgba(0,0,0,0.375)
tool.ROADS.bgcolor = rgba(255,255,255,0.375)
tool.RAIL.bgcolor = rgba(127,127,0,0.375)
tool.RESIDENTIAL.bgcolor = rgba(0,255,0,0.375)
tool.COMMERCIAL.bgcolor = rgba(0,0,255,0.375)
tool.INDUSTRIAL.bgcolor = rgba(255,255,0,0.375)
tool.FIRE.bgcolor = rgba(0,255,0,0.375)
tool.POLICE.bgcolor = rgba(0,255,0,0.375)
tool.POWERPLANT.bgcolor = rgba(93,93,93,0.375)
tool.NUCLEAR.bgcolor = rgba(93,93,93,0.375)
tool.STADIUM.bgcolor = rgba(93,93,93,0.375)
tool.SEAPORT.bgcolor = rgba(93,93,93,0.375)
tool.AIRPORT.bgcolor = rgba(93,93,93,0.375)
tool.PARK.bgcolor = rgba(0,255,0,0.375)
!
! The Graphs pane (accessible through Window -> Graphs)
!
dismiss_graph = Dismiss Graph
ten_years = 10 YRS
onetwenty_years = 120 YRS
graph_button.RESPOP = grres.png
graph_button.COMPOP = grcom.png
graph_button.INDPOP = grind.png
graph_button.MONEY = grmony.png
graph_button.CRIME = grcrim.png
graph_button.POLLUTION = grpoll.png
graph_button.RESPOP.selected = grreshi.png
graph_button.COMPOP.selected = grcomhi.png
graph_button.INDPOP.selected = grindhi.png
graph_button.MONEY.selected = grmonyhi.png
graph_button.CRIME.selected = grcrimhi.png
graph_button.POLLUTION.selected = grpollhi.png
graph_color.RESPOP = #00e600
graph_color.COMPOP = #0000e6
graph_color.INDPOP = #ffff00
graph_color.MONEY = #007f00
graph_color.CRIME = #7f0000
graph_color.POLLUTION = #997f4c
graph_label.RESPOP = Residential
graph_label.COMPOP = Commercial
graph_label.INDPOP = Industrial
graph_label.MONEY = Cash Flow
graph_label.CRIME = Crime
graph_label.POLLUTION = Pollution
!
! The Evaluation Pane (accessible through Windows -> Evaluation)
!
dismiss-evaluation = Dismiss Evaluation
public-opinion = Public Opinion
public-opinion-1 = Is the mayor doing a good job?
public-opinion-2 = What are the worst problems?
public-opinion-yes = YES
public-opinion-no = NO
statistics-head = Statistics
city-score-head = Overall City Score (0 - 1000)
stats-population = Population:
stats-net-migration = Net Migration:
stats-last-year = (last year)
stats-assessed-value = Assessed Value:
stats-category = Category:
stats-game-level = Game Level:
city-score-current = Current Score:
city-score-change = Annual Change:
!
! The mini-map, overlay legends
!
legend_image.POPDEN_OVERLAY = /legendmm.png
legend_image.GROWTHRATE_OVERLAY = /legendpm.png
legend_image.LANDVALUE_OVERLAY = /legendmm.png
legend_image.CRIME_OVERLAY = /legendmm.png
legend_image.POLLUTE_OVERLAY = /legendmm.png
legend_image.TRAFFIC_OVERLAY = /legendmm.png
legend_image.FIRE_OVERLAY = /legendmm.png
legend_image.POLICE_OVERLAY = /legendmm.png
!
! Budget Dialog box, accessable through Windows -> Budget
!
budgetdlg.title = Budget
budgetdlg.funding_level_hdr = Funding Level
budgetdlg.allocation_hdr = Allocation
budgetdlg.road_fund = Trans. Fund
budgetdlg.police_fund = Police Fund
budgetdlg.fire_fund = Fire Fund
budgetdlg.continue = Continue With These Figures
budgetdlg.reset = Reset to Original Figures
budgetdlg.tax_rate_hdr = Tax Rate
budgetdlg.annual_receipts_hdr = Annual Receipts
budgetdlg.tax_revenue = Tax Revenue
budgetdlg.period_ending = Period Ending
budgetdlg.cash_begin = Cash, beginning of year
budgetdlg.taxes_collected = Taxes Collected
budgetdlg.capital_expenses = Capital Expenditures
budgetdlg.operating_expenses = Operating Expenses
budgetdlg.cash_end = Cash, end of year
budgetdlg.auto_budget = Auto Budget
budgetdlg.pause_game = Pause Game
!
! Notification pane
!
notification.dismiss = Dismiss
notification.query_hdr = Query Zone Status
notification.zone_lbl = Zone:
notification.density_lbl = Density:
notification.value_lbl = Value:
notification.crime_lbl = Crime:
notification.pollution_lbl = Pollution:
notification.growth_lbl = Growth:

View file

@ -0,0 +1,62 @@
!! This file is part of MicropolisJ.
!! Copyright (C) 2013 Jason Long
!! Portions Copyright (C) 1989-2007 Electronic Arts Inc.
!!
!! MicropolisJ is free software; you can redistribute it and/or modify
!! it under the terms of the GNU GPLv3, with additional terms.
!! See the README file, included in this distribution, for details.
zone.0 = Clear
zone.1 = Water
zone.2 = Trees
zone.3 = Rubble
zone.4 = Flood
zone.5 = Radioactive Waste
zone.6 = Fire
zone.7 = Road
zone.8 = Power
zone.9 = Rail
zone.10 = Residential
zone.11 = Commercial
zone.12 = Industrial
zone.13 = Seaport
zone.14 = Airport
zone.15 = Coal Power
zone.16 = Fire Department
zone.17 = Police Department
zone.18 = Stadium
zone.19 = Nuclear Power
zone.20 = Draw Bridge
zone.21 = Radar Dish
zone.22 = Fountain
zone.23 = Industrial
zone.24 = Steelers 38 Bears 3
zone.25 = Draw Bridge
zone.26 = Ur 238
zone.27 =
! population density
status.1 = Low
status.2 = Medium
status.3 = High
status.4 = Very High
! land value
status.5 = Slum
status.6 = Lower Class
status.7 = Middle Class
status.8 = High
! crime level
status.9 = Safe
status.10 = Light
status.11 = Moderate
status.12 = Dangerous
! pollution
status.13 = None
status.14 = Moderate
status.15 = Heavy
status.16 = Very Heavy
! growth rate
status.17 = Declining
status.18 = Stable
status.19 = Slow Growth
status.20 = Fast Growth