Uses of Enum
konquest.api.model.KonquestUpgrade
Packages that use KonquestUpgrade
Package
Description
The manager package provides specialized interfaces for specific features in Konquest.
The model package offers lower-level object interfaces that are managed by the managers.
-
Uses of KonquestUpgrade in konquest.api.manager
Methods in konquest.api.manager that return types with arguments of type KonquestUpgradeModifier and TypeMethodDescriptionKonquestUpgradeManager.getAvailableUpgrades(KonquestTown town) Provides a list of upgrades available for purchase for the given town.Methods in konquest.api.manager with parameters of type KonquestUpgradeModifier and TypeMethodDescriptionbooleanKonquestUpgradeManager.applyTownUpgrade(KonquestTown town, KonquestUpgrade upgrade, int level) Apply the given upgrade and level to the given town.intKonquestUpgradeManager.getTownUpgradeLevel(KonquestTown town, KonquestUpgrade upgrade) Gets the current upgrade level of the given town.intKonquestUpgradeManager.getUpgradeCost(KonquestUpgrade upgrade, int level) Gets the cost in favor of the given upgrade and level.intKonquestUpgradeManager.getUpgradePopulation(KonquestUpgrade upgrade, int level) Gets the population requirement of the given upgrade and level. -
Uses of KonquestUpgrade in konquest.api.model
Methods in konquest.api.model that return KonquestUpgradeModifier and TypeMethodDescriptionstatic KonquestUpgradeKonquestUpgrade.getUpgrade(String name) Get the corresponding KonquestUpgrade enum that matches the given name.static KonquestUpgradeReturns the enum constant of this type with the specified name.static KonquestUpgrade[]KonquestUpgrade.values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in konquest.api.model with parameters of type KonquestUpgradeModifier and TypeMethodDescriptionbooleanKonquestTown.hasUpgrade(KonquestUpgrade upgrade) Checks whether this town has the given upgrade.booleanKonquestTown.isUpgradeDisabled(KonquestUpgrade upgrade) Checks whether this town has the given upgrade but it's disabled.