Class TutorialMissionEvent
java.lang.Object
com.fs.starfarer.api.impl.campaign.events.BaseEventPlugin
com.fs.starfarer.api.impl.campaign.tutorial.TutorialMissionEvent
- All Implemented Interfaces:
CampaignEventListener
,CampaignEventPlugin
,CallEvent.CallableEvent
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.fs.starfarer.api.impl.campaign.events.BaseEventPlugin
BaseEventPlugin.MarketFilter
Nested classes/interfaces inherited from interface com.fs.starfarer.api.campaign.CampaignEventListener
CampaignEventListener.FleetDespawnReason
Nested classes/interfaces inherited from interface com.fs.starfarer.api.campaign.events.CampaignEventPlugin
CampaignEventPlugin.CampaignEventCategory, CampaignEventPlugin.PriceUpdatePlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PlanetAPI
protected PersonAPI
protected SectorEntityToken
protected SectorEntityToken
protected float
protected boolean
protected SectorEntityToken
protected SectorEntityToken
protected PlanetAPI
protected PersonAPI
protected PersonAPI
protected PlanetAPI
protected SectorEntityToken
static final String
protected SectorEntityToken
protected StarSystemAPI
protected PlanetAPI
static final String
Fields inherited from class com.fs.starfarer.api.impl.campaign.events.BaseEventPlugin
entity, eventTarget, eventType, faction, market, memory, started, startProbability, statModId
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
advance
(float amount) boolean
callEvent
(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) Called by the CallEvent command (called from rules.csv).static PersonAPI
createMainContact
(PlanetAPI ancyra) protected void
endEvent()
static void
The larger image in the message detail.Override for the "image" normally specified in events.json.Color[]
getHighlightColors
(String stageId) Since multiple reports (possibly from different channels) are possible per stage: 1) All reports must have the highlighted text occur in the same order, which is the order this method returns them in, and 2) Not all highlights have to occur in every report.String[]
getHighlights
(String stageId) Since multiple reports (possibly from different channels) are possible per stage: 1) All reports must have the highlighted text occur in the same order, which is the order this method returns them in, and 2) Not all highlights have to occur in every report.static PersonAPI
Token values for filling out descriptions from reports.csv.void
init
(String type, CampaignEventTarget eventTarget) Called when the EventProbability for this event is accessed.boolean
isDone()
protected void
saveNag()
void
Only called when an event is started via CampaignEventManagerAPI.startEvent().void
Called when the event starts.protected void
Methods inherited from class com.fs.starfarer.api.impl.campaign.events.BaseEventPlugin
addFactionNameTokens, addPersonTokens, addTokensToList, allowMultipleOngoingForSameTarget, cleanup, findMatchingMarkets, findNearestMarket, getCurrentMessageIcon, getDefaultPriority, getEventTarget, getEventType, getId, getLoggingId, getMemory, getPriceUpdates, getRelatedCommodities, getStageIdForLikely, getStageIdForPossible, getStatModId, getTargetName, getWarningWhenLikelyPriority, getWarningWhenPossiblePriority, increaseRecentUnrest, init, isEventStarted, reportBattleFinished, reportBattleOccurred, reportEconomyMonthEnd, reportEconomyTick, reportEncounterLootGenerated, reportFleetDespawned, reportFleetJumped, reportFleetReachedEntity, reportFleetSpawned, reportPlayerActivatedAbility, reportPlayerClosedMarket, reportPlayerDeactivatedAbility, reportPlayerDidNotTakeCargo, reportPlayerDumpedCargo, reportPlayerEngagement, reportPlayerMarketTransaction, reportPlayerOpenedMarket, reportPlayerOpenedMarketAndCargoUpdated, reportPlayerReputationChange, reportPlayerReputationChange, reportShownInteractionDialog, setProbability, setTarget, showAllMessagesIfOngoing, showLatestMessageIfOngoing, startEvent, useEventNameAsId
-
Field Details
-
TUT_STAGE
- See Also:
-
REASON
- See Also:
-
elapsedDays
protected float elapsedDays -
ended
protected boolean ended -
system
-
ancyra
-
pontus
-
tetra
-
derinkuyu
-
probe
-
inner
-
fringe
-
detachment
-
relay
-
mainContact
-
dataContact
-
jangalaContact
-
jangala
-
stage
-
-
Constructor Details
-
TutorialMissionEvent
public TutorialMissionEvent()
-
-
Method Details
-
init
Description copied from interface:CampaignEventPlugin
Called when the EventProbability for this event is accessed. Doesn't mean the event will actually happen.- Specified by:
init
in interfaceCampaignEventPlugin
- Overrides:
init
in classBaseEventPlugin
-
setParam
Description copied from interface:CampaignEventPlugin
Only called when an event is started via CampaignEventManagerAPI.startEvent().- Specified by:
setParam
in interfaceCampaignEventPlugin
- Overrides:
setParam
in classBaseEventPlugin
-
startEvent
public void startEvent()Description copied from interface:CampaignEventPlugin
Called when the event starts.- Specified by:
startEvent
in interfaceCampaignEventPlugin
- Overrides:
startEvent
in classBaseEventPlugin
-
createMainContact
-
getJangalaContact
-
getMainContact
-
updateStage
-
endEvent
protected void endEvent() -
advance
public void advance(float amount) - Specified by:
advance
in interfaceCampaignEventPlugin
- Overrides:
advance
in classBaseEventPlugin
-
callEvent
public boolean callEvent(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) Description copied from interface:CampaignEventPlugin
Called by the CallEvent command (called from rules.csv).- Specified by:
callEvent
in interfaceCallEvent.CallableEvent
- Specified by:
callEvent
in interfaceCampaignEventPlugin
- Overrides:
callEvent
in classBaseEventPlugin
-
endGalatiaPortionOfMission
public static void endGalatiaPortionOfMission() -
saveNag
protected void saveNag() -
addWeaponsToStorage
public void addWeaponsToStorage() -
getWeaponForSlot
-
pick
-
createSetMessageLocationScript
-
getTokenReplacements
Description copied from interface:CampaignEventPlugin
Token values for filling out descriptions from reports.csv.- Specified by:
getTokenReplacements
in interfaceCampaignEventPlugin
- Overrides:
getTokenReplacements
in classBaseEventPlugin
- Returns:
-
getHighlights
Description copied from interface:CampaignEventPlugin
Since multiple reports (possibly from different channels) are possible per stage: 1) All reports must have the highlighted text occur in the same order, which is the order this method returns them in, and 2) Not all highlights have to occur in every report.- Specified by:
getHighlights
in interfaceCampaignEventPlugin
- Overrides:
getHighlights
in classBaseEventPlugin
- Returns:
-
getHighlightColors
Description copied from interface:CampaignEventPlugin
Since multiple reports (possibly from different channels) are possible per stage: 1) All reports must have the highlighted text occur in the same order, which is the order this method returns them in, and 2) Not all highlights have to occur in every report.- Specified by:
getHighlightColors
in interfaceCampaignEventPlugin
- Overrides:
getHighlightColors
in classBaseEventPlugin
- Returns:
-
isDone
public boolean isDone()- Specified by:
isDone
in interfaceCampaignEventPlugin
- Overrides:
isDone
in classBaseEventPlugin
-
getEventName
- Specified by:
getEventName
in interfaceCampaignEventPlugin
- Overrides:
getEventName
in classBaseEventPlugin
-
getEventCategory
- Specified by:
getEventCategory
in interfaceCampaignEventPlugin
- Overrides:
getEventCategory
in classBaseEventPlugin
-
getEventIcon
Description copied from interface:CampaignEventPlugin
Override for the "image" normally specified in events.json. Small.- Specified by:
getEventIcon
in interfaceCampaignEventPlugin
- Overrides:
getEventIcon
in classBaseEventPlugin
- Returns:
-
getCurrentImage
Description copied from interface:CampaignEventPlugin
The larger image in the message detail.- Specified by:
getCurrentImage
in interfaceCampaignEventPlugin
- Overrides:
getCurrentImage
in classBaseEventPlugin
- Returns:
-