Class ContactIntel
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
com.fs.starfarer.api.impl.campaign.intel.contacts.ContactIntel
- All Implemented Interfaces:
IntelInfoPlugin
,EveryFrameScript
,CommRelayEntityPlugin.CommSnifferReadableIntel
,CallEvent.CallableEvent
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.fs.starfarer.api.campaign.comm.IntelInfoPlugin
IntelInfoPlugin.ArrowData, IntelInfoPlugin.IntelSortTier, IntelInfoPlugin.ListInfoMode, IntelInfoPlugin.TableRowClickData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static String
static String
static String
static String
static float
static float
static float
protected boolean
protected MarketAPI
protected FactionAPI
protected boolean
static float
static float
static String
protected int
protected PersonAPI
static boolean
protected ContactIntel.ContactState
static float
protected IntervalUtil
static String
static String
protected Boolean
protected Boolean
Fields inherited from class com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
BULLET, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, tagsForSort, timestamp
Fields inherited from interface com.fs.starfarer.api.campaign.comm.IntelInfoPlugin
LIST_ITEM_TEXT_WIDTH, NEW_DAYS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
addFactionPara
(TooltipMakerAPI info, Color tc, float pad) protected void
static void
addPotentialContact
(float probability, PersonAPI contact, MarketAPI market, TextPanelAPI text) static void
addPotentialContact
(PersonAPI contact, MarketAPI market, TextPanelAPI text) protected void
protected void
addTypePara
(TooltipMakerAPI info, Color tc, float pad) void
advanceImpl
(float amount) void
buttonPressConfirmed
(Object buttonId, IntelUIAPI ui) void
createConfirmationPrompt
(Object buttonId, TooltipMakerAPI prompt) void
void
createSmallDescription
(TooltipMakerAPI info, float width, float height) void
develop
(IntelUIAPI ui) protected boolean
boolean
doesButtonHaveConfirmDialog
(Object buttonId) void
protected void
void
protected void
protected MarketAPI
getButtonStoryPointActionDelegate
(Object buttonId) static ContactIntel
getContactIntel
(PersonAPI person) static long
getContactRandomSeed
(PersonAPI person) static int
getIcon()
40x40, no icon if null.getIntelTags
(SectorMapAPI map) Method NEEDS to handle map being null gracefully.static int
getName()
static int
float
getState()
void
loseContact
(InteractionDialogAPI dialog) protected void
void
static boolean
playerHasContact
(PersonAPI person, boolean includePotential) static boolean
void
relocateToMarket
(MarketAPI other, boolean withIntelUpdate) static void
removeContact
(PersonAPI person, InteractionDialogAPI dialog) void
void
void
void
boolean
void
storyActionConfirmed
(Object buttonId, IntelUIAPI ui) protected void
Methods inherited from class com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
addBulletPoints, addDays, addDays, addDays, addDays, addDeleteButton, addDeleteButton, addGenericButton, addGenericButton, addLogTimestamp, addMarketTable, addMarketToList, addMarketToList, advance, autoAddCampaignMessage, bullet, buttonPressCancelled, callEvent, canMakeVisible, canMakeVisibleToCommSniffer, canMakeVisibleToPlayer, canTurnImportantOff, createDeleteConfirmationPrompt, createLargeDescription, endAfterDelay, endAfterDelay, endImmediately, forceAddNextFrame, getArrowData, getBackgroundGlowColor, getBaseDaysAfterEnd, getBulletColorForMode, getCancelText, getCircleBorderColorOverride, getCommRelayRange, getConfirmationPromptWidth, getConfirmText, getDays, getDaysSincePlayerVisible, getDaysString, getImportantIcon, getListInfoParam, getPlayerVisibleTimestamp, getPostingLocation, getPostingRangeLY, getSortStringNewestFirst, getSortStringNewestFirst, getSortTier, getSoundColonyThreat, getSoundLogUpdate, getSoundMajorPosting, getSoundMinorMessage, getSoundStandardPosting, getSoundStandardUpdate, getTagsForSort, getTimeRemainingFraction, getTitleColor, hasImportantButton, hasLargeDescription, hasSmallDescription, indent, isDone, isEnded, isEnding, isHidden, isImportant, isNew, isPlayerVisible, isSendingUpdate, notifyEnded, reportMadeVisibleToPlayer, runWhilePaused, sendUpdate, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, setForceAddNextFrame, setHidden, setImportant, setListInfoParam, setNew, setPlayerVisibleTimestamp, setPostingLocation, setPostingRangeLY, setPostingRangeLY, setTagsForSort, tableRowClicked, unindent
-
Field Details
-
NO_CONTACTS_ON_MARKET
-
MAX_NUM_MISSIONS_BONUS
public static float MAX_NUM_MISSIONS_BONUS -
MAX_MISSION_QUALITY_BONUS
public static float MAX_MISSION_QUALITY_BONUS -
DEFAULT_POTENTIAL_CONTACT_PROB
public static float DEFAULT_POTENTIAL_CONTACT_PROB -
ADD_PER_FAIL
public static float ADD_PER_FAIL -
DAYS_AT_PRIORITY_FOR_FULL_EFFECT
public static float DAYS_AT_PRIORITY_FOR_FULL_EFFECT -
UPDATE_RELOCATED_CONTACT
-
UPDATE_LOST_CONTACT
-
BUTTON_DEVELOP
-
BUTTON_SUSPEND
-
BUTTON_DELETE
-
BUTTON_PRIORITY
-
DURATION
public static float DURATION -
POTENTIAL_EXPIRES
public static boolean POTENTIAL_EXPIRES -
state
-
person
-
market
-
marketFaction
-
wasAddedToCommDirectory
-
wasAddedToMarket
-
hadMissionHub
protected boolean hadMissionHub -
marketWasDeciv
protected boolean marketWasDeciv -
tracker
-
numPriorityInARow
protected int numPriorityInARow -
TOOLTIP_WIDTH
public static float TOOLTIP_WIDTH
-
-
Constructor Details
-
ContactIntel
-
-
Method Details
-
ensureHasMissionHub
protected void ensureHasMissionHub() -
ensureIsInCommDirectory
protected void ensureIsInCommDirectory() -
advanceImpl
public void advanceImpl(float amount) - Overrides:
advanceImpl
in classBaseIntelPlugin
-
notifyPlayerAboutToOpenIntelScreen
public void notifyPlayerAboutToOpenIntelScreen()- Specified by:
notifyPlayerAboutToOpenIntelScreen
in interfaceIntelInfoPlugin
- Overrides:
notifyPlayerAboutToOpenIntelScreen
in classBaseIntelPlugin
-
findMarketToRelocateTo
-
unsetFlags
protected void unsetFlags() -
loseContact
-
doPeriodicCheck
public void doPeriodicCheck() -
relocateToMarket
-
getPriorityMult
public float getPriorityMult() -
reportPlayerClickedOn
public void reportPlayerClickedOn()- Specified by:
reportPlayerClickedOn
in interfaceIntelInfoPlugin
- Overrides:
reportPlayerClickedOn
in classBaseIntelPlugin
-
notifyEnding
protected void notifyEnding()- Overrides:
notifyEnding
in classBaseIntelPlugin
-
reportRemovedIntel
public void reportRemovedIntel()- Specified by:
reportRemovedIntel
in interfaceIntelInfoPlugin
- Overrides:
reportRemovedIntel
in classBaseIntelPlugin
-
shouldRemoveIntel
public boolean shouldRemoveIntel()- Specified by:
shouldRemoveIntel
in interfaceIntelInfoPlugin
- Overrides:
shouldRemoveIntel
in classBaseIntelPlugin
-
getName
- Overrides:
getName
in classBaseIntelPlugin
-
getSortString
- Specified by:
getSortString
in interfaceIntelInfoPlugin
- Overrides:
getSortString
in classBaseIntelPlugin
-
getSmallDescriptionTitle
- Specified by:
getSmallDescriptionTitle
in interfaceIntelInfoPlugin
- Overrides:
getSmallDescriptionTitle
in classBaseIntelPlugin
-
createIntelInfo
- Specified by:
createIntelInfo
in interfaceIntelInfoPlugin
- Overrides:
createIntelInfo
in classBaseIntelPlugin
-
addTypePara
-
addFactionPara
-
addBulletPoints
- Overrides:
addBulletPoints
in classBaseIntelPlugin
-
createSmallDescription
- Specified by:
createSmallDescription
in interfaceIntelInfoPlugin
- Overrides:
createSmallDescription
in classBaseIntelPlugin
-
buttonPressConfirmed
- Specified by:
buttonPressConfirmed
in interfaceIntelInfoPlugin
- Overrides:
buttonPressConfirmed
in classBaseIntelPlugin
-
storyActionConfirmed
- Specified by:
storyActionConfirmed
in interfaceIntelInfoPlugin
- Overrides:
storyActionConfirmed
in classBaseIntelPlugin
-
ensureIsAddedToMarket
public void ensureIsAddedToMarket() -
develop
-
createConfirmationPrompt
- Specified by:
createConfirmationPrompt
in interfaceIntelInfoPlugin
- Overrides:
createConfirmationPrompt
in classBaseIntelPlugin
-
doesButtonHaveConfirmDialog
- Specified by:
doesButtonHaveConfirmDialog
in interfaceIntelInfoPlugin
- Overrides:
doesButtonHaveConfirmDialog
in classBaseIntelPlugin
-
getButtonStoryPointActionDelegate
- Specified by:
getButtonStoryPointActionDelegate
in interfaceIntelInfoPlugin
- Overrides:
getButtonStoryPointActionDelegate
in classBaseIntelPlugin
-
getIcon
Description copied from interface:IntelInfoPlugin
40x40, no icon if null.- Specified by:
getIcon
in interfaceIntelInfoPlugin
- Overrides:
getIcon
in classBaseIntelPlugin
- Returns:
-
getIntelTags
Description copied from interface:IntelInfoPlugin
Method NEEDS to handle map being null gracefully.- Specified by:
getIntelTags
in interfaceIntelInfoPlugin
- Overrides:
getIntelTags
in classBaseIntelPlugin
- Returns:
-
getCommMessageSound
- Specified by:
getCommMessageSound
in interfaceIntelInfoPlugin
- Overrides:
getCommMessageSound
in classBaseIntelPlugin
-
getFactionForUIColors
- Specified by:
getFactionForUIColors
in interfaceIntelInfoPlugin
- Overrides:
getFactionForUIColors
in classBaseIntelPlugin
-
getPerson
-
setPerson
-
getState
-
setState
-
developRequiresStoryPoint
protected boolean developRequiresStoryPoint() -
getMapLocation
- Specified by:
getMapLocation
in interfaceIntelInfoPlugin
- Overrides:
getMapLocation
in classBaseIntelPlugin
-
addImportanceTooltip
-
addPriorityTooltip
-
addDevelopTooltip
-
getMaxContacts
public static int getMaxContacts() -
getCurrentContacts
public static int getCurrentContacts() -
getPriorityContacts
public static int getPriorityContacts() -
playerHasIntelItemForContact
-
playerHasContact
-
getContactIntel
-
removeContact
-
addPotentialContact
-
addPotentialContact
public static void addPotentialContact(float probability, PersonAPI contact, MarketAPI market, TextPanelAPI text) -
getContactRandomSeed
-