Interface LegacyBattleAISupport
- All Known Subinterfaces:
BattleController
- All Known Implementing Classes:
MultiLaneBattleController,StandardBattleController
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.voidsimulateMode(boolean simulateMode) Deprecated, for removal: This API element is subject to removal in a future version.UseContextKeys.SIMULATIONin the battle context instead.booleanDeprecated, for removal: This API element is subject to removal in a future version.This is only retained for legacy AI compatibility.voidsimulateStats(boolean simulateStats) Deprecated, for removal: This API element is subject to removal in a future version.This is only retained for legacy AI compatibility.
-
Method Details
-
simulateMode
Deprecated, for removal: This API element is subject to removal in a future version.UseContextKeys.SIMULATIONin the battle context instead. The value can be read withget(ContextKey)and written withset(ContextKey, Object).Returns whether this battle is currently running in the legacy AI simulation mode.This flag is only used by the legacy
BattleAI.ADVANCED,BattleAI.TACTICAL, andBattleAI.AGGRESSIVEimplementations. New simulation-aware code should use the battle context instead.- Returns:
trueif the battle is being simulated by legacy AI logic;falseotherwise
-
simulateMode
Deprecated, for removal: This API element is subject to removal in a future version.UseContextKeys.SIMULATIONin the battle context instead.Sets whether this battle is currently running in the legacy AI simulation mode.- Parameters:
simulateMode- whether the battle should be treated as simulated by legacy AI logic
-
simulateStats
Deprecated, for removal: This API element is subject to removal in a future version.This is only retained for legacy AI compatibility. New code should not use this flag.Returns whether the legacy AI should use simulated stat handling for this battle.This is an artifact of the older battle AI system. It is separate from the modern battle context simulation flag and does not represent a general-purpose battle state setting.
- Returns:
trueif legacy AI stat simulation handling is enabled;falseotherwise
-
simulateStats
Deprecated, for removal: This API element is subject to removal in a future version.This is only retained for legacy AI compatibility. New code should not use this flag.Sets whether the legacy AI should use simulated stat handling for this battle.- Parameters:
simulateStats- whether legacy AI stat simulation handling should be enabled
-
ContextKeys.SIMULATIONin the battle context instead.