Stian Grenborgen
18ec0e754a
Uses changeMission instead of setMission since the former handles dispose and setting transportation priority.
2023-05-02 21:21:05 +02:00
Stian Grenborgen
3291a5fb23
Handles the cases of forced repair (classic combat model) and volunatary repair (hitpoints model) differently.
2023-01-18 22:24:11 +01:00
Stian Grenborgen
e0973fe2c4
Adds a new combat model with hitpoints and a mod for activating it.
2023-01-14 20:02:14 +01:00
Stian Grenborgen
9cda2c6032
BR#3313 is fixed by closing open file descriptors after use.
2022-12-25 11:46:27 +01:00
Stian Grenborgen
0fc1b6ebf6
This fixes unattended production so that it matches the original game on viceroy difficulty.
2022-12-11 14:57:35 +01:00
Stian Grenborgen
46e12489f4
Adding test for colony tile production. This is a combined regression and verification test. The values in verified-tile-production.csv has been verified using actual ingame production data from the classic 2.25 (DOS).
2022-12-11 10:54:42 +01:00
Stian Grenborgen
d20dedb592
Fixes colony tile production so that the values matches the classic.
2022-12-11 09:46:47 +01:00
Stian Grenborgen
47fb2cc774
BuildingType.getPotentialProduction now gives the same number as the actual production.
2022-10-10 21:38:07 +02:00
Stian Grenborgen
3bdda582bd
Creates calculator classes replacing the functionality previously in ColonyTile and Building.
...
* Production output can now reliably be tested without having built a Colony. This will be used by the new AI Colony Management code.
* Fixes several differences/bugs that occured because of code duplication.
2022-09-20 21:04:49 +02:00
Mike Pope
0185cc5a4a
Untangle the SoL/Tories mess.
2022-09-05 19:38:52 +09:30
Stian Grenborgen
7e3990ef6d
Improves AI colony development and expansion.
...
This change has been tested with five games with 300 AI-only turns each. The simple fix was simply stop making tools in every colony. Prior to this commit, tools was prioritized above hammers (slowing down the construction of buildings) and even made elder statesmen work in the fields instead of producing liberty bells.
There are still lots of silly decisions, but these decisions are more complicated to fix -- and will therefor have to wait for the AI colony management rewrite.
2022-08-28 08:51:29 +02:00
Stian Grenborgen
6025d5c679
Fixes an issue where a circleiterator with radius 0 still returned a tile.
2022-08-14 09:22:57 +02:00
Stian Grenborgen
cc4254b397
Reintroducing separate volume sliders for music and sound effects.
2022-08-13 11:28:03 +02:00
Stian Grenborgen
a34f43425e
Fixes selection of nation when connecting to a running multiplayer game.
2022-06-18 10:41:56 +02:00
Stian Grenborgen
3e3927d0ff
Reintroduces the separation between rules and TC. A different TC can now be loaded using the --tc command line parameter.
2022-05-28 12:02:34 +02:00
Stian Grenborgen
4f7f25171d
Fixes multiple issues with connections, multiplayer games and the meta server. Changes:
...
* Network messages expecting a reply now have a timeout (default 30 seconds).
* Fixes issue where multiplayer games only listened on the loopback address (for systems where the hostname resolves to the localhost address).
* It's now possible to specify the binding address when running a multiplayer game. Only IPv4 is supported for now. It's easy to support IPv6, but we need to find a better way of displaying possible addresses first (perhaps using the NIC's name instead of the address?)
* The player gets an error when trying to register a server as public if the server is not connectable.
* Fixes game crash after the LoadingSavegameDialog gets cancelled (happened when a new game got loaded).
* Fixes the LoadingSavegameDialog so that the chosen values are actually used.
* The header now gets the translated title (the message key was wrong).
2022-04-30 11:05:01 +02:00
Stian Grenborgen
752845c44f
Resource loading with mods has now been fixed. Resources are reloaded when changing the active mods. Added a debug option for reloading resources from disk (great for testing new ingame graphics).
2022-04-23 13:51:23 +02:00
Stian Grenborgen
73d4d2756d
Fixing bug that prevented maps from being generated in the map editor.
2022-04-18 16:03:59 +02:00
Stian Grenborgen
027e240a07
Removing unused imports.
2022-01-08 09:06:18 +01:00
Calebrw
1688ba5623
Update more copyrights to 2022
2022-01-06 22:42:39 -06:00
Calebrw
d990bbceb1
Update Copyright Year to 2022.
2022-01-02 18:29:09 -06:00
Mike Pope
ff7c5cad2e
Allow REF to build when it lacks ships, BR#3212.
2021-04-16 20:55:48 +09:30
Mike Pope
9b1c599c3a
Tighten REF naval unit addition and testing.
2021-04-16 15:31:23 +09:30
Mike Pope
17403824f7
Add UUID to high score file, IR#226, GHPR#72.
2021-04-11 14:18:13 +09:30
calebrw
ded8170abc
Update Copyright Year to 2021.
2021-01-24 21:41:02 -06:00
Mike Pope
4415839817
Absorb FreeColClient.starClient into the constructor.
2020-07-26 16:16:53 +09:30
Mike Pope
a9d26cdc31
Update copyright year.
2020-07-13 17:13:35 +09:30
Blakeley00
5b617fe8d8
Map changes
...
New Mazim maps added, damaged rivers in old maps repaired, authors of old maps itentifed, all maps renamed to include size and author info. Map properties file updated too.
2020-06-15 13:45:06 +09:30
Mike Pope
057763afcb
Add new disaster test cases, from GranthamAnthem.
2020-04-26 16:52:59 +09:30
Nicolas Grantham
8cc717b383
added new disaster test cases
2020-03-14 16:50:49 -07:00
Mike Pope
2119b554ff
Force client warning from illegal naval-native-trades.
2020-03-04 17:17:05 +10:30
Mike Pope
736a8297d3
Remedial region discovery work.
2020-02-06 09:47:26 +10:30
Mike Pope
58660f4a42
Should be using changeMap not setMap, BR#3167.
2020-01-24 20:57:49 +10:30
Mike Pope
ee62792591
Add region discover check to all native settlement interactions, BR#3174.
2020-01-20 10:31:36 +10:30
Mike Pope
4a66f88a52
Discourage occasional test fail.
2020-01-05 16:52:53 +10:30
Mike Pope
fcacffd324
Simplify ResourceManager, dropping special mappings.
2019-04-25 14:41:42 +09:30
Mike Pope
f76a70340f
clone -> cloneOption to avoid Object.clone() semantic confusion (findbugs).
2019-03-29 20:04:12 +10:30
Mike Pope
118eefe605
Clean up static overloads (findbugs).
2019-03-26 20:49:01 +10:30
Mike Pope
f315953ae3
Differentiate static routines (findbugs).
2019-03-22 17:25:32 +10:30
Mike Pope
7e762bc703
More unnecessary casts to ServerPlayer.
2019-03-20 08:59:41 +10:30
Mike Pope
9a1977eba5
Add and use FreeColTestCase.getServerPlayer.
2019-03-18 10:44:40 +10:30
Mike Pope
af2d263cf8
Exception handling cleanup in tests (findbugs).
2019-03-14 07:09:55 +10:30
Mike Pope
72a95d1c3a
Prevent NPE in Merge (findbugs).
2019-03-14 07:08:30 +10:30
Mike Pope
9e8b6fe92b
More non-functional code (findbugs).
2019-03-13 09:48:14 +10:30
Mike Pope
e6a30e548b
Use addAll where possible (findbugs).
2019-03-13 08:00:55 +10:30
Mike Pope
b4bbaaf1ff
Further exception tightening (findbugs).
2019-03-06 07:33:32 +10:30
Mike Pope
2032947723
Rework StringTemplate to use one list.
2019-03-04 11:07:08 +10:30
Mike Pope
3e9df7d8be
Move the headless state handling mostly into FreeCol.
2019-03-02 12:48:53 +10:30
Mike Pope
d4dd47a95b
Wrap the users of Specification.allTypes.
2019-02-27 07:37:08 +10:30
Mike Pope
566e26363d
More Specification clean up.
2019-02-24 14:30:03 +10:30