Commit Graph

180 Commits

Author SHA1 Message Date
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 3636a7d445 The native AI no longer crashes the game when all settlements have been eliminated. 2022-08-21 14:10:26 +02:00
Stian Grenborgen 027e240a07 Removing unused imports. 2022-01-08 09:06:18 +01:00
Calebrw d990bbceb1 Update Copyright Year to 2022. 2022-01-02 18:29:09 -06:00
Mike Pope 476e5460a7 Prevent zero-division in NativeAIPlayer, GHPR#89. 2021-04-13 16:29:33 +09:30
calebrw ded8170abc Update Copyright Year to 2021. 2021-01-24 21:41:02 -06:00
Mike Pope a9d26cdc31 Update copyright year. 2020-07-13 17:13:35 +09:30
Mike Pope 118eefe605 Clean up static overloads (findbugs). 2019-03-26 20:49:01 +10:30
Mike Pope 0f59ec252b Soften ServerPlayer some more. 2019-03-17 14:14:48 +10:30
Mike Pope 703141bec7 Exception message improvements (findbugs). 2019-03-15 09:18:44 +10:30
Mike Pope 83bd02b54f Make explicit enum for indian demand results (findbugs). 2019-03-12 07:31:56 +10:30
Mike Pope 96990c8198 Last round of permission tightening (findbugs). 2019-03-05 07:32:52 +10:30
Mike Pope 24cdbbbfd5 Abstract cleanup (findbugs). 2019-02-17 08:13:54 +10:30
Mike Pope c8d8649cd7 Preallocate collections where possible (findbugs). 2019-02-16 09:42:46 +10:30
Mike Pope 2874b34b91 More reduced constructor complexity. 2019-02-10 19:30:38 +10:30
Mike Pope bbae709dba Clarify return type. 2019-01-31 18:17:19 +10:30
Mike Pope 306a5165f1 Clarify AI object initialization. 2019-01-25 10:31:34 +10:30
Mike Pope a475318159 Improve use of findPath, catch null end early so it can be debugged. 2019-01-24 16:42:41 +10:30
Mike Pope 58e20dd0c3 Clean up dead stores (findbugs). 2019-01-13 14:48:34 +10:30
Mike Pope f7a76b015c Bump copyright year. 2019-01-07 19:59:49 +10:30
calebrw 5b6b8996e8 Update all applicable Copyright tags to 2018 2018-05-06 21:47:39 -05:00
Mike Pope 74e2fd2cf0 Improve error handling for empty unit trade fail. 2017-11-17 15:11:19 +10:30
Mike Pope 210a8e9a41 Enforce ban on ships trading with uncontacted settlements, BR#3109. 2017-11-12 15:17:46 +10:30
Mike Pope 267d6aad81 Clean up unnecessary getOption calls and use of non-specific option accessors. 2017-09-12 19:07:15 +09:30
Mike Pope 2d5481528a Fix native gifts crash, BR#3069. 2017-07-29 12:56:07 +09:30
Mike Pope 86e7ee1f01 Haggle price up was failing, BR#3050. 2017-05-14 10:30:39 +09:30
Mike Pope a4d0e2b6a4 Owned unit removal still failing. 2017-01-31 11:46:44 +10:30
calebrw 45f652fdb3 Bump year to 2017 2017-01-01 20:55:05 -06:00
Mike Pope 1a97d56109 Move GameOptions into options, like MapGeneratorOptions. 2016-10-17 19:51:41 +10:30
Mike Pope cdb726bb22 Limit native trade sale offers to 3 goods types. 2016-10-16 09:41:29 +10:30
Mike Pope 064dd490be Drop getTagName. 2016-10-11 18:29:24 +10:30
Michael Pope 198a0b95e2 Remove askTimeout use in native demands. 2016-10-10 20:44:28 +10:30
Michael Pope a745396547 More dead code removal following native trade work. 2016-10-07 19:12:07 +10:30
Mike Pope 2e2c0b9f10 Native trade state dropped from client. 2016-10-03 10:42:25 +10:30
calebrw 26ef74d832 Cleanup imports including unused and * imports.
* imports cleaned up unless the entire package is imported.
2016-09-28 20:25:15 -05:00
Mike Pope 2d9078852a Use List.sort, not Collections.sort. 2016-09-25 12:21:28 +09:30
calebrw 4cf8823b95 Revert "Remove unnecessary {@inheritDoc} tags from JavaDocs"
This reverts commit 1e20b7878d.
2016-09-17 14:28:55 -05:00
calebrw 1e20b7878d Remove unnecessary {@inheritDoc} tags from JavaDocs
{@inheritDoc}  with no further content is redundant as JavaDoc automatically pulls in super class documentation.

See https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javadoc.html#CHDFAGJH
2016-09-15 18:34:49 -05:00
calebrw 6fc6d4f2b0 Update Javadoc to more modern @code tags instead of legacy <code> tags.
Available in Java since version 1.5.
2016-09-03 14:45:57 -05:00
Mike Pope 1bd6745f4a Improve NativeTradeSession handling. 2016-08-13 14:52:42 +09:30
Mike Pope 4af96b19a6 Start pricing the settlement goods in native trades. 2016-08-12 18:23:11 +09:30
Mike Pope 0cf881cecf Add NativeTradeItem, and start pricing the unit goods. 2016-08-11 17:13:39 +09:30
Mike Pope db4c88fb69 Another step toward making native trade asynchronous. 2016-08-11 12:46:49 +09:30
Mike Pope 9126703b37 isMilitaryGoods -> getMilitary, and drop hardcoded goods types in IndianSettlement. 2016-08-08 19:56:49 +09:30
Mike Pope 1d940d4206 getSettlements splits 2016-06-23 07:45:34 +09:30
Michael Pope 31685c83dd get*Players splits into list and stream forms. 2016-06-23 07:39:21 +09:30
Michael Pope fc1e2142d4 Reintroduce getUnits() returning stream. 2016-06-22 07:36:37 +09:30
Michael Pope 203eccd3cd Add and use Settlement.getAllUnitsList. 2016-06-21 09:12:23 +09:30
Michael Pope 5a43aebb39 Settlement routines now have stream and list forms. 2016-06-19 21:15:38 +09:30
Michael Pope e60a4ca468 Minor tidying. 2016-06-16 19:26:08 +09:30