public class ContactIntel extends BaseIntelPlugin
| Modifier and Type | Class and Description |
|---|---|
static class |
ContactIntel.ContactState |
IntelInfoPlugin.ArrowData, IntelInfoPlugin.IntelSortTier, IntelInfoPlugin.ListInfoMode, IntelInfoPlugin.TableRowClickData| Modifier and Type | Field and Description |
|---|---|
static float |
ADD_PER_FAIL |
static java.lang.String |
BUTTON_DELETE |
static java.lang.String |
BUTTON_DEVELOP |
static java.lang.String |
BUTTON_PRIORITY |
static java.lang.String |
BUTTON_SUSPEND |
static float |
DAYS_AT_PRIORITY_FOR_FULL_EFFECT |
static float |
DEFAULT_POTENTIAL_CONTACT_PROB |
static float |
DURATION |
protected boolean |
hadMissionHub |
protected MarketAPI |
market |
protected FactionAPI |
marketFaction |
protected boolean |
marketWasDeciv |
static float |
MAX_MISSION_QUALITY_BONUS |
static float |
MAX_NUM_MISSIONS_BONUS |
static java.lang.String |
NO_CONTACTS_ON_MARKET |
protected int |
numPriorityInARow |
protected PersonAPI |
person |
static boolean |
POTENTIAL_EXPIRES |
protected ContactIntel.ContactState |
state |
static float |
TOOLTIP_WIDTH |
protected IntervalUtil |
tracker |
static java.lang.String |
UPDATE_LOST_CONTACT |
static java.lang.String |
UPDATE_RELOCATED_CONTACT |
protected java.lang.Boolean |
wasAddedToCommDirectory |
protected java.lang.Boolean |
wasAddedToMarket |
BULLET, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, tagsForSort, timestampLIST_ITEM_TEXT_WIDTH, NEW_DAYS| Constructor and Description |
|---|
ContactIntel(PersonAPI person,
MarketAPI market) |
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, unindentpublic static java.lang.String NO_CONTACTS_ON_MARKET
public static float MAX_NUM_MISSIONS_BONUS
public static float MAX_MISSION_QUALITY_BONUS
public static float DEFAULT_POTENTIAL_CONTACT_PROB
public static float ADD_PER_FAIL
public static float DAYS_AT_PRIORITY_FOR_FULL_EFFECT
public static java.lang.String UPDATE_RELOCATED_CONTACT
public static java.lang.String UPDATE_LOST_CONTACT
public static java.lang.String BUTTON_DEVELOP
public static java.lang.String BUTTON_SUSPEND
public static java.lang.String BUTTON_DELETE
public static java.lang.String BUTTON_PRIORITY
public static float DURATION
public static boolean POTENTIAL_EXPIRES
protected ContactIntel.ContactState state
protected FactionAPI marketFaction
protected java.lang.Boolean wasAddedToCommDirectory
protected java.lang.Boolean wasAddedToMarket
protected boolean hadMissionHub
protected boolean marketWasDeciv
protected IntervalUtil tracker
protected int numPriorityInARow
public static float TOOLTIP_WIDTH
public ContactIntel(PersonAPI person, MarketAPI market)
protected void ensureHasMissionHub()
protected void ensureIsInCommDirectory()
public void advanceImpl(float amount)
advanceImpl in class BaseIntelPluginpublic void notifyPlayerAboutToOpenIntelScreen()
notifyPlayerAboutToOpenIntelScreen in interface IntelInfoPluginnotifyPlayerAboutToOpenIntelScreen in class BaseIntelPluginprotected MarketAPI findMarketToRelocateTo()
protected void unsetFlags()
public void loseContact(InteractionDialogAPI dialog)
public void doPeriodicCheck()
public void relocateToMarket(MarketAPI other, boolean withIntelUpdate)
public float getPriorityMult()
public void reportPlayerClickedOn()
reportPlayerClickedOn in interface IntelInfoPluginreportPlayerClickedOn in class BaseIntelPluginprotected void notifyEnding()
notifyEnding in class BaseIntelPluginpublic void reportRemovedIntel()
reportRemovedIntel in interface IntelInfoPluginreportRemovedIntel in class BaseIntelPluginpublic boolean shouldRemoveIntel()
shouldRemoveIntel in interface IntelInfoPluginshouldRemoveIntel in class BaseIntelPluginpublic java.lang.String getName()
getName in class BaseIntelPluginpublic java.lang.String getSortString()
getSortString in interface IntelInfoPlugingetSortString in class BaseIntelPluginpublic java.lang.String getSmallDescriptionTitle()
getSmallDescriptionTitle in interface IntelInfoPlugingetSmallDescriptionTitle in class BaseIntelPluginpublic void createIntelInfo(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
createIntelInfo in interface IntelInfoPlugincreateIntelInfo in class BaseIntelPluginprotected void addTypePara(TooltipMakerAPI info, java.awt.Color tc, float pad)
protected void addFactionPara(TooltipMakerAPI info, java.awt.Color tc, float pad)
protected void addBulletPoints(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
addBulletPoints in class BaseIntelPluginpublic void createSmallDescription(TooltipMakerAPI info, float width, float height)
createSmallDescription in interface IntelInfoPlugincreateSmallDescription in class BaseIntelPluginpublic void buttonPressConfirmed(java.lang.Object buttonId, IntelUIAPI ui)
buttonPressConfirmed in interface IntelInfoPluginbuttonPressConfirmed in class BaseIntelPluginpublic void storyActionConfirmed(java.lang.Object buttonId, IntelUIAPI ui)
storyActionConfirmed in interface IntelInfoPluginstoryActionConfirmed in class BaseIntelPluginpublic void ensureIsAddedToMarket()
public void develop(IntelUIAPI ui)
public void createConfirmationPrompt(java.lang.Object buttonId, TooltipMakerAPI prompt)
createConfirmationPrompt in interface IntelInfoPlugincreateConfirmationPrompt in class BaseIntelPluginpublic boolean doesButtonHaveConfirmDialog(java.lang.Object buttonId)
doesButtonHaveConfirmDialog in interface IntelInfoPlugindoesButtonHaveConfirmDialog in class BaseIntelPluginpublic StoryPointActionDelegate getButtonStoryPointActionDelegate(java.lang.Object buttonId)
getButtonStoryPointActionDelegate in interface IntelInfoPlugingetButtonStoryPointActionDelegate in class BaseIntelPluginpublic java.lang.String getIcon()
IntelInfoPlugingetIcon in interface IntelInfoPlugingetIcon in class BaseIntelPluginpublic java.util.Set<java.lang.String> getIntelTags(SectorMapAPI map)
IntelInfoPlugingetIntelTags in interface IntelInfoPlugingetIntelTags in class BaseIntelPluginpublic java.lang.String getCommMessageSound()
getCommMessageSound in interface IntelInfoPlugingetCommMessageSound in class BaseIntelPluginpublic FactionAPI getFactionForUIColors()
getFactionForUIColors in interface IntelInfoPlugingetFactionForUIColors in class BaseIntelPluginpublic ContactIntel.ContactState getState()
public void setState(ContactIntel.ContactState state)
protected boolean developRequiresStoryPoint()
public SectorEntityToken getMapLocation(SectorMapAPI map)
getMapLocation in interface IntelInfoPlugingetMapLocation in class BaseIntelPluginprotected void addImportanceTooltip(TooltipMakerAPI info)
protected void addPriorityTooltip(TooltipMakerAPI info)
protected void addDevelopTooltip(TooltipMakerAPI info)
public static int getMaxContacts()
public static int getCurrentContacts()
public static int getPriorityContacts()
public static boolean playerHasIntelItemForContact(PersonAPI person)
public static boolean playerHasContact(PersonAPI person, boolean includePotential)
public static ContactIntel getContactIntel(PersonAPI person)
public static void removeContact(PersonAPI person, InteractionDialogAPI dialog)
public static void addPotentialContact(PersonAPI contact, MarketAPI market, TextPanelAPI text)
public static void addPotentialContact(float probability, PersonAPI contact, MarketAPI market, TextPanelAPI text)
public static long getContactRandomSeed(PersonAPI person)