2019-05-03 16:59:46 +03:00
|
|
|
package com.unciv
|
|
|
|
|
2020-03-11 10:39:37 +01:00
|
|
|
object Constants {
|
|
|
|
const val settler = "Settler"
|
2021-07-02 14:45:18 +02:00
|
|
|
const val eraSpecificUnit = "Era Starting Unit"
|
2022-07-23 19:06:48 +02:00
|
|
|
const val spreadReligion = "Spread Religion"
|
|
|
|
const val removeHeresy = "Remove Foreign religions from your own cities"
|
2020-03-11 10:39:37 +01:00
|
|
|
|
2023-02-02 18:16:51 +02:00
|
|
|
const val english = "English"
|
|
|
|
|
2020-04-13 09:49:32 +02:00
|
|
|
const val impassable = "Impassable"
|
2020-03-11 10:39:37 +01:00
|
|
|
const val ocean = "Ocean"
|
2022-03-13 21:57:40 +01:00
|
|
|
|
|
|
|
/** The "Coast" _terrain_ */
|
2020-03-11 10:39:37 +01:00
|
|
|
const val coast = "Coast"
|
2022-03-13 21:57:40 +01:00
|
|
|
/** The "Coastal" terrain _filter_ */
|
|
|
|
const val coastal = "Coastal"
|
|
|
|
|
2020-03-11 10:39:37 +01:00
|
|
|
const val mountain = "Mountain"
|
|
|
|
const val hill = "Hill"
|
|
|
|
const val plains = "Plains"
|
|
|
|
const val lakes = "Lakes"
|
|
|
|
const val desert = "Desert"
|
|
|
|
const val grassland = "Grassland"
|
|
|
|
const val tundra = "Tundra"
|
|
|
|
const val snow = "Snow"
|
|
|
|
|
|
|
|
const val forest = "Forest"
|
|
|
|
const val jungle = "Jungle"
|
|
|
|
const val ice = "Ice"
|
|
|
|
val vegetation = arrayOf(forest, jungle)
|
2022-03-13 21:57:40 +01:00
|
|
|
|
|
|
|
// Note the difference in case. **Not** interchangeable!
|
2022-05-11 00:35:21 +02:00
|
|
|
// TODO this is very opaque behaviour to modders
|
2022-03-13 21:57:40 +01:00
|
|
|
/** The "Fresh water" terrain _unique_ */
|
2022-02-25 13:39:34 +02:00
|
|
|
const val freshWater = "Fresh water"
|
2022-03-13 21:57:40 +01:00
|
|
|
/** The "Fresh Water" terrain _filter_ */
|
|
|
|
const val freshWaterFilter = "Fresh Water"
|
2020-03-11 10:39:37 +01:00
|
|
|
|
|
|
|
const val barbarianEncampment = "Barbarian encampment"
|
2023-03-13 16:02:08 +01:00
|
|
|
const val cityCenter = "City center"
|
2020-03-11 10:39:37 +01:00
|
|
|
|
|
|
|
const val peaceTreaty = "Peace Treaty"
|
|
|
|
const val researchAgreement = "Research Agreement"
|
|
|
|
const val openBorders = "Open Borders"
|
2022-05-25 18:42:51 +02:00
|
|
|
/** Used as origin in StatMap or ResourceSupplyList, or the toggle button in DiplomacyOverviewTab */
|
|
|
|
const val cityStates = "City-States"
|
|
|
|
/** Used as origin in ResourceSupplyList */
|
|
|
|
const val tradable = "Tradable"
|
|
|
|
|
2020-03-11 10:39:37 +01:00
|
|
|
const val random = "Random"
|
2022-01-23 00:39:28 -08:00
|
|
|
const val unknownNationName = "???"
|
2022-05-11 04:46:37 -04:00
|
|
|
const val unknownCityName = "???"
|
2020-03-11 10:39:37 +01:00
|
|
|
|
2020-04-16 20:39:05 +03:00
|
|
|
const val fort = "Fort"
|
|
|
|
|
2020-04-11 21:02:00 +02:00
|
|
|
const val futureTech = "Future Tech"
|
2022-04-24 21:45:38 +02:00
|
|
|
// Easter egg name. Is to avoid conflicts when players name their own religions.
|
2021-08-15 17:53:01 +02:00
|
|
|
// This religion name should never be displayed.
|
2022-03-13 21:57:40 +01:00
|
|
|
const val noReligionName = "The religion of TheLegend27"
|
2022-08-28 22:25:14 +02:00
|
|
|
const val spyHideout = "Spy Hideout"
|
2022-05-25 18:42:51 +02:00
|
|
|
|
2022-04-24 21:45:38 +02:00
|
|
|
const val neutralVictoryType = "Neutral"
|
2020-04-11 21:02:00 +02:00
|
|
|
|
|
|
|
const val cancelImprovementOrder = "Cancel improvement order"
|
2020-04-11 20:40:08 +02:00
|
|
|
const val tutorialPopupNamePrefix = "Tutorial: "
|
2020-04-13 20:53:23 +02:00
|
|
|
|
2021-08-09 12:59:30 +02:00
|
|
|
const val OK = "OK"
|
2020-04-13 20:53:23 +02:00
|
|
|
const val close = "Close"
|
2021-08-09 12:59:30 +02:00
|
|
|
const val yes = "Yes"
|
|
|
|
const val no = "No"
|
2022-05-31 15:31:19 +02:00
|
|
|
const val loading = "Loading..."
|
2020-04-17 09:21:11 +02:00
|
|
|
|
2020-04-18 23:59:26 +03:00
|
|
|
const val barbarians = "Barbarians"
|
2020-07-04 22:29:20 +02:00
|
|
|
const val spectator = "Spectator"
|
2021-07-21 13:41:48 +02:00
|
|
|
|
2023-04-19 10:50:56 +03:00
|
|
|
const val embarked = "Embarked"
|
|
|
|
const val wounded = "Wounded"
|
|
|
|
|
|
|
|
|
2021-07-21 13:41:48 +02:00
|
|
|
const val rising = "Rising"
|
|
|
|
const val lowering = "Lowering"
|
2022-01-19 14:16:33 +02:00
|
|
|
const val remove = "Remove "
|
2022-11-27 09:12:26 -08:00
|
|
|
const val repair = "Repair"
|
2022-03-08 13:18:57 +01:00
|
|
|
|
2022-02-22 11:33:07 +02:00
|
|
|
const val uniqueOrDelimiter = "\" OR \""
|
2022-05-25 18:42:51 +02:00
|
|
|
|
Unciv server (#6384)
* Background implementation for Unciv server with ktor.
Server ip in settings, able to copy your own ip and copy ip from clipboard for easy sharing, created stub for the client-server data transfer. No actual data storage or server implementation.
* Unciv server round 2 - implementing crud for files and it works!
metadata seems to only be in use for mutex, which is currently unused
That's all for today
* When starting a new multiplayer game the files are correctly saved in the server, and the server can return the files, but the function in the game to retrieve the game info is non-blocking so it doesn't work. Still, progress!
* Changed the Gdx http to basic Java http, as used for Dropbox, and now everything works!!!!
* Documentation for running and using the server
* Better texts, translations, etc
* Trog is right this should be a PUT not POST
2022-03-21 21:05:02 +02:00
|
|
|
const val dropboxMultiplayerServer = "Dropbox"
|
2022-12-10 22:38:53 +06:00
|
|
|
const val uncivXyzServer = "https://uncivserver.xyz"
|
2022-03-08 13:18:57 +01:00
|
|
|
|
2022-08-22 13:02:52 +02:00
|
|
|
const val defaultTileset = "HexaRealm"
|
2022-11-13 00:34:51 +02:00
|
|
|
const val defaultUnitset = "AbsoluteUnits"
|
2022-09-04 16:09:14 +02:00
|
|
|
const val defaultSkin = "Minimal"
|
2022-08-22 13:02:52 +02:00
|
|
|
|
2022-03-08 13:18:57 +01:00
|
|
|
/**
|
|
|
|
* Use this to determine whether a [MapUnit][com.unciv.logic.map.MapUnit]'s movement is exhausted
|
|
|
|
* (currentMovement <= this) if and only if a fuzzy comparison is needed to account for Float rounding errors.
|
|
|
|
* _Most_ checks do compare to 0!
|
|
|
|
*/
|
|
|
|
const val minimumMovementEpsilon = 0.05f // 0.1f was used previously, too - here for global searches
|
2022-07-23 19:06:48 +02:00
|
|
|
const val aiPreferInquisitorOverMissionaryPressureDifference = 3000f
|
2022-05-25 18:42:51 +02:00
|
|
|
|
2022-01-23 09:14:27 -08:00
|
|
|
const val defaultFontSize = 18
|
|
|
|
const val headingFontSize = 24
|
2021-05-20 21:17:07 +02:00
|
|
|
}
|