Package com.fs.starfarer.api.impl.codex
Class CodexUnlocker
java.lang.Object
com.fs.starfarer.api.impl.codex.CodexUnlocker
- All Implemented Interfaces:
CargoScreenListener
,CodexEventListener
,FleetEventListener
public class CodexUnlocker
extends Object
implements FleetEventListener, CodexEventListener, CargoScreenListener
For the codex entries that require a listener of some type to unlock.
- Author:
- Alex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
makeAwareOfConditionsOn
(MarketAPI market) void
void
reportBattleOccurred
(CampaignFleetAPI nullHere, CampaignFleetAPI primaryWinner, BattleAPI battle) "fleet" will be null if the listener is registered with the ListenerManager, and non-null if the listener is added directly to a fleet.void
void
void
reportFleetDespawnedToListener
(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, Object param) void
void
reportPlayerNonMarketTransaction
(PlayerMarketTransaction transaction, InteractionDialogAPI dialog) void
reportSubmarketOpened
(SubmarketAPI submarket) void
-
Constructor Details
-
CodexUnlocker
public CodexUnlocker()
-
-
Method Details
-
reportFleetDespawnedToListener
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, Object param) - Specified by:
reportFleetDespawnedToListener
in interfaceFleetEventListener
-
reportBattleOccurred
public void reportBattleOccurred(CampaignFleetAPI nullHere, CampaignFleetAPI primaryWinner, BattleAPI battle) Description copied from interface:FleetEventListener
"fleet" will be null if the listener is registered with the ListenerManager, and non-null if the listener is added directly to a fleet.- Specified by:
reportBattleOccurred
in interfaceFleetEventListener
-
reportCargoScreenOpened
public void reportCargoScreenOpened()- Specified by:
reportCargoScreenOpened
in interfaceCargoScreenListener
-
reportAboutToOpenCodex
public void reportAboutToOpenCodex()- Specified by:
reportAboutToOpenCodex
in interfaceCodexEventListener
-
unlockStuff
public void unlockStuff() -
reportClosedCodex
public void reportClosedCodex()- Specified by:
reportClosedCodex
in interfaceCodexEventListener
-
makeAwareOfConditionsOn
-
reportPlayerLeftCargoPods
- Specified by:
reportPlayerLeftCargoPods
in interfaceCargoScreenListener
-
reportPlayerNonMarketTransaction
public void reportPlayerNonMarketTransaction(PlayerMarketTransaction transaction, InteractionDialogAPI dialog) - Specified by:
reportPlayerNonMarketTransaction
in interfaceCargoScreenListener
-
reportSubmarketOpened
- Specified by:
reportSubmarketOpened
in interfaceCargoScreenListener
-