All Methods Instance Methods Abstract Methods Deprecated Methods
| Modifier and Type |
Method and Description |
void |
addListener(CampaignEventListener listener) |
void |
addListenerWithTimeout(CampaignEventListener listener,
float daysToKeep) |
EveryFrameScript |
addPing(SectorEntityToken entity,
CampaignPingSpec custom) |
EveryFrameScript |
addPing(SectorEntityToken entity,
java.lang.String pingType)
See data/campaign/pings.json for ping types.
|
EveryFrameScript |
addPing(SectorEntityToken entity,
java.lang.String pingType,
java.awt.Color colorOverride) |
void |
addScript(EveryFrameScript script) |
void |
addTransientListener(CampaignEventListener listener) |
void |
addTransientScript(EveryFrameScript script) |
ReputationActionResponsePlugin.ReputationAdjustmentResult |
adjustPlayerReputation(java.lang.Object action,
PersonAPI person)
Adjust the player's reputation with the specified person, based on the action.
|
ReputationActionResponsePlugin.ReputationAdjustmentResult |
adjustPlayerReputation(java.lang.Object action,
java.lang.String factionId)
Adjust the player's reputation with the specified faction, based on the action.
|
NascentGravityWellAPI |
createNascentGravityWell(SectorEntityToken target,
float radius) |
StarSystemAPI |
createStarSystem(java.lang.String name) |
void |
doHyperspaceTransition(CampaignFleetAPI fleet,
SectorEntityToken jumpLocation,
JumpPointAPI.JumpDestination dest) |
void |
doHyperspaceTransition(CampaignFleetAPI fleetAPI,
SectorEntityToken jumpLocation,
JumpPointAPI.JumpDestination dest,
float initialDelay) |
java.lang.String |
genUID() |
java.util.List<java.lang.String> |
getAllEmptyVariantIds() |
java.util.List<FactionAPI> |
getAllFactions() |
java.util.List<java.lang.String> |
getAllFighterWingIds() |
java.util.List<CampaignEventListener> |
getAllListeners() |
java.util.List<LocationAPI> |
getAllLocations()
All star systems and hyperspace.
|
java.util.List<java.lang.String> |
getAllWeaponIds() |
AutofitVariantsAPI |
getAutofitVariants() |
CampaignUIAPI |
getCampaignUI() |
CharacterDataAPI |
getCharacterData() |
CampaignClockAPI |
getClock() |
LocationAPI |
getCurrentLocation() |
MarketAPI |
getCurrentlyOpenMarket() |
java.util.List<SectorEntityToken> |
getCustomEntitiesWithTag(java.lang.String tag) |
java.lang.String |
getDifficulty() |
EconomyAPI |
getEconomy() |
java.util.List<SectorEntityToken> |
getEntitiesWithTag(java.lang.String tag)
Iterates through hyperspace and all star systems.
|
SectorEntityToken |
getEntityById(java.lang.String id)
Will look for the entity in all LocationAPIs.
|
CampaignEventManagerAPI |
getEventManager() |
FactionAPI |
getFaction(java.lang.String factionId) |
GenericPluginManagerAPI |
getGenericPlugins() |
LocationAPI |
getHyperspace() |
ImportantPeopleAPI |
getImportantPeople() |
IntelDataAPI |
getIntel() |
IntelManagerAPI |
getIntelManager() |
long |
getLastPlayerBattleTimestamp() |
ListenerManagerAPI |
getListenerManager() |
MemoryAPI |
getMemory()
"global" memory.
|
MemoryAPI |
getMemoryWithoutUpdate() |
SectorEntityToken |
getMousedOverEntity() |
java.util.Map<java.lang.String,java.lang.Object> |
getPersistentData()
Can be used (including by classes that are not part of the savegame - i.e.
|
long |
getPlayerBattleSeed() |
FactionAPI |
getPlayerFaction() |
CampaignFleetAPI |
getPlayerFleet() |
MemoryAPI |
getPlayerMemoryWithoutUpdate()
Same as getCharacterData().getMemoryWithoutUpdate()
|
PersonAPI |
getPlayerPerson() |
MutableCharacterStatsAPI |
getPlayerStats() |
PluginPickerAPI |
getPluginPicker() |
org.lwjgl.util.vector.Vector2f |
getRespawnCoordinates() |
LocationAPI |
getRespawnLocation() |
RulesAPI |
getRules() |
java.util.List<EveryFrameScript> |
getScripts() |
java.lang.String |
getSeedString() |
StarSystemAPI |
getStarSystem(java.lang.String name) |
java.util.List<StarSystemAPI> |
getStarSystems() |
java.util.List<EveryFrameScript> |
getTransientScripts() |
PersistentUIDataAPI |
getUIData() |
ViewportAPI |
getViewport() |
boolean |
hasScript(java.lang.Class<?> clazz) |
boolean |
hasTransientScript(java.lang.Class<?> clazz) |
boolean |
isFastForwardIteration() |
boolean |
isInFastAdvance()
true during the during-game-creation time passing.
|
boolean |
isInNewGameAdvance() |
boolean |
isInSectorGen() |
boolean |
isIronMode() |
boolean |
isLastPlayerBattleWon() |
boolean |
isPaused() |
void |
layInCourseFor(SectorEntityToken target) |
void |
registerPlugin(CampaignPlugin plugin) |
void |
removeListener(CampaignEventListener listener) |
void |
removeScript(EveryFrameScript script) |
void |
removeScriptsOfClass(java.lang.Class c) |
void |
removeStarSystem(StarSystemAPI system) |
void |
removeStarSystemNextFrame(StarSystemAPI system)
Useful for remove star systems from scripts etc where using removeStarSystem() would cause a
ConcurrentModificationException.
|
void |
removeTransientScript(EveryFrameScript script) |
void |
removeTransientScriptsOfClass(java.lang.Class c) |
void |
reportBattleFinished(CampaignFleetAPI primaryWinner,
BattleAPI battle)
Called after an autoresolve round that finishes a battle, after reportBattleOccurred.
|
void |
reportBattleOccurred(CampaignFleetAPI primaryWinner,
BattleAPI battle)
Called once per each autoresolve round of the battle.
|
void |
reportEconomyMonthEnd() |
void |
reportEconomyTick(int iterIndex) |
void |
reportEncounterLootGenerated(FleetEncounterContextPlugin plugin,
CargoAPI loot) |
void |
reportEventStage(CampaignEventPlugin event,
java.lang.String stage,
MessagePriority priority)
Deprecated.
|
void |
reportEventStage(CampaignEventPlugin event,
java.lang.String stage,
SectorEntityToken sendFrom,
MessagePriority priority)
Deprecated.
|
void |
reportEventStage(CampaignEventPlugin event,
java.lang.String stage,
SectorEntityToken sendFrom,
MessagePriority priority,
OnMessageDeliveryScript onDelivery)
Deprecated.
|
void |
reportFleetDespawned(CampaignFleetAPI fleet,
CampaignEventListener.FleetDespawnReason reason,
java.lang.Object param) |
void |
reportFleetJumped(CampaignFleetAPI fleet,
SectorEntityToken from,
JumpPointAPI.JumpDestination to) |
void |
reportFleetReachedEntity(CampaignFleetAPI fleet,
SectorEntityToken entity) |
void |
reportPlayerActivatedAbility(AbilityPlugin ability,
java.lang.Object param) |
void |
reportPlayerClosedMarket(MarketAPI market) |
void |
reportPlayerDeactivatedAbility(AbilityPlugin ability,
java.lang.Object param) |
void |
reportPlayerDidNotTakeCargo(CargoAPI cargo) |
void |
reportPlayerDumpedCargo(CargoAPI cargo) |
void |
reportPlayerEngagement(EngagementResultAPI result) |
void |
reportPlayerMarketTransaction(PlayerMarketTransaction transaction) |
void |
reportPlayerOpenedMarket(MarketAPI market)
Player opened the core UI while interacting with an entity that has a market.
|
void |
reportPlayerOpenedMarketAndCargoUpdated(MarketAPI market) |
void |
reportPlayerReputationChange(PersonAPI person,
float delta) |
void |
reportPlayerReputationChange(java.lang.String faction,
float delta) |
void |
reportShowInteractionDialog(InteractionDialogAPI dialog)
Shouldn't have to call this as the relevant showInteractionDialog() methods already do.
|
void |
setCurrentLocation(LocationAPI location) |
void |
setCurrentlyOpenMarket(MarketAPI currentlyOpenMarket) |
void |
setDifficulty(java.lang.String difficulty) |
void |
setFastForwardIteration(boolean isFastForwardIteration) |
void |
setInFastAdvance(boolean isInNewGameAdvance) |
void |
setInNewGameAdvance(boolean isInNewGameAdvance) |
void |
setInSectorGen(boolean isInSectorGen) |
void |
setLastPlayerBattleTimestamp(long lastPlayerBattleTimestamp) |
void |
setLastPlayerBattleWon(boolean lastPlayerBattleWon) |
void |
setPaused(boolean paused) |
void |
setPlayerBattleSeed(long nextPlayerBattleSeed) |
void |
setPlayerFleet(CampaignFleetAPI playerFleet) |
void |
setRespawnLocation(LocationAPI respawnLocation) |
void |
setSeedString(java.lang.String seedString) |
void |
unregisterPlugin(java.lang.String pluginId) |