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, timestamp
LIST_ITEM_TEXT_WIDTH, NEW_DAYS
Constructor and Description |
---|
ContactIntel(PersonAPI person,
MarketAPI market) |
addBulletPoints, addDays, addDays, addDays, addDeleteButton, addDeleteButton, addGenericButton, addGenericButton, 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, getSortTier, getSoundColonyThreat, getSoundLogUpdate, getSoundMajorPosting, getSoundMinorMessage, getSoundStandardPosting, getSoundStandardUpdate, 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, tableRowClicked, unindent
public 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 PersonAPI person
protected MarketAPI market
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
protected void ensureHasMissionHub()
protected void ensureIsInCommDirectory()
public void advanceImpl(float amount)
advanceImpl
in class BaseIntelPlugin
public void notifyPlayerAboutToOpenIntelScreen()
notifyPlayerAboutToOpenIntelScreen
in interface IntelInfoPlugin
notifyPlayerAboutToOpenIntelScreen
in class BaseIntelPlugin
protected 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 IntelInfoPlugin
reportPlayerClickedOn
in class BaseIntelPlugin
protected void notifyEnding()
notifyEnding
in class BaseIntelPlugin
public void reportRemovedIntel()
reportRemovedIntel
in interface IntelInfoPlugin
reportRemovedIntel
in class BaseIntelPlugin
public boolean shouldRemoveIntel()
shouldRemoveIntel
in interface IntelInfoPlugin
shouldRemoveIntel
in class BaseIntelPlugin
public java.lang.String getName()
getName
in class BaseIntelPlugin
public java.lang.String getSortString()
getSortString
in interface IntelInfoPlugin
getSortString
in class BaseIntelPlugin
public java.lang.String getSmallDescriptionTitle()
getSmallDescriptionTitle
in interface IntelInfoPlugin
getSmallDescriptionTitle
in class BaseIntelPlugin
public void createIntelInfo(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
createIntelInfo
in interface IntelInfoPlugin
createIntelInfo
in class BaseIntelPlugin
protected 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 BaseIntelPlugin
public void createSmallDescription(TooltipMakerAPI info, float width, float height)
createSmallDescription
in interface IntelInfoPlugin
createSmallDescription
in class BaseIntelPlugin
public void buttonPressConfirmed(java.lang.Object buttonId, IntelUIAPI ui)
buttonPressConfirmed
in interface IntelInfoPlugin
buttonPressConfirmed
in class BaseIntelPlugin
public void storyActionConfirmed(java.lang.Object buttonId, IntelUIAPI ui)
storyActionConfirmed
in interface IntelInfoPlugin
storyActionConfirmed
in class BaseIntelPlugin
public void ensureIsAddedToMarket()
public void develop(IntelUIAPI ui)
public void createConfirmationPrompt(java.lang.Object buttonId, TooltipMakerAPI prompt)
createConfirmationPrompt
in interface IntelInfoPlugin
createConfirmationPrompt
in class BaseIntelPlugin
public boolean doesButtonHaveConfirmDialog(java.lang.Object buttonId)
doesButtonHaveConfirmDialog
in interface IntelInfoPlugin
doesButtonHaveConfirmDialog
in class BaseIntelPlugin
public StoryPointActionDelegate getButtonStoryPointActionDelegate(java.lang.Object buttonId)
getButtonStoryPointActionDelegate
in interface IntelInfoPlugin
getButtonStoryPointActionDelegate
in class BaseIntelPlugin
public java.lang.String getIcon()
IntelInfoPlugin
getIcon
in interface IntelInfoPlugin
getIcon
in class BaseIntelPlugin
public java.util.Set<java.lang.String> getIntelTags(SectorMapAPI map)
IntelInfoPlugin
getIntelTags
in interface IntelInfoPlugin
getIntelTags
in class BaseIntelPlugin
public java.lang.String getCommMessageSound()
getCommMessageSound
in interface IntelInfoPlugin
getCommMessageSound
in class BaseIntelPlugin
public FactionAPI getFactionForUIColors()
getFactionForUIColors
in interface IntelInfoPlugin
getFactionForUIColors
in class BaseIntelPlugin
public PersonAPI getPerson()
public void setPerson(PersonAPI person)
public ContactIntel.ContactState getState()
public void setState(ContactIntel.ContactState state)
protected boolean developRequiresStoryPoint()
public SectorEntityToken getMapLocation(SectorMapAPI map)
getMapLocation
in interface IntelInfoPlugin
getMapLocation
in class BaseIntelPlugin
protected 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)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.