public class TriTachyonDeal extends BaseIntelPlugin implements EconomyAPI.EconomyUpdateListener
| Modifier and Type | Class and Description |
|---|---|
static class |
TriTachyonDeal.AgreementEndingType |
IntelInfoPlugin.ArrowData, IntelInfoPlugin.IntelSortTier, IntelInfoPlugin.ListInfoMode, IntelInfoPlugin.TableRowClickData| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACCESS_MOD_ID |
static java.lang.String |
BROKE_TRI_TACH_DEAL |
static java.lang.String |
BUTTON_END |
protected TriTachyonDeal.AgreementEndingType |
endType |
protected FactionAPI |
faction |
static java.lang.String |
HAS_TRI_TACH_DEAL |
static java.lang.String |
KEY |
static float |
MARKET_SIZE_TO_ACCESSIBILITY |
static float |
REP_FOR_BREAKING_DEAL |
static java.lang.String |
UPDATE_PARAM_ACCEPTED |
BULLET, BUTTON_DELETE, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, tagsForSort, timestampLIST_ITEM_TEXT_WIDTH, NEW_DAYS| Constructor and Description |
|---|
TriTachyonDeal(InteractionDialogAPI dialog) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBulletPoints(TooltipMakerAPI info,
IntelInfoPlugin.ListInfoMode mode) |
static boolean |
brokeDeal() |
void |
buttonPressConfirmed(java.lang.Object buttonId,
IntelUIAPI ui) |
void |
commodityUpdated(java.lang.String commodityId) |
protected float |
computeAccessibilityBonusPlayer() |
protected float |
computeAccessibilityBonusTriTach() |
protected float |
computeColonySize(java.lang.String factionId) |
void |
createConfirmationPrompt(java.lang.Object buttonId,
TooltipMakerAPI prompt) |
void |
createSmallDescription(TooltipMakerAPI info,
float width,
float height) |
boolean |
doesButtonHaveConfirmDialog(java.lang.Object buttonId) |
void |
economyUpdated() |
void |
endAgreement(TriTachyonDeal.AgreementEndingType type,
InteractionDialogAPI dialog) |
static TriTachyonDeal |
get() |
java.lang.String |
getAcceptedPostfix() |
java.lang.String |
getBaseName() |
java.lang.String |
getBrokenPostfix() |
FactionAPI |
getFaction() |
FactionAPI |
getFactionForUIColors() |
java.lang.String |
getIcon()
40x40, no icon if null.
|
java.lang.String |
getImportantIcon()
20x20, if null will use default.
|
java.util.Set<java.lang.String> |
getIntelTags(SectorMapAPI map)
Method NEEDS to handle map being null gracefully.
|
SectorEntityToken |
getMapLocation(SectorMapAPI map) |
java.lang.String |
getName() |
java.lang.String |
getSmallDescriptionTitle() |
static boolean |
hasDeal() |
boolean |
isEconomyListenerExpired() |
protected void |
notifyEnded() |
protected void |
notifyEnding() |
protected java.lang.Object |
readResolve() |
static void |
setBrokeDeal(boolean broke) |
static void |
setHasDeal(boolean deal) |
void |
unapplyAccessModifier() |
addBulletPoints, addDays, addDays, addDays, addDays, addDeleteButton, addDeleteButton, addGenericButton, addGenericButton, addLogTimestamp, addMarketTable, addMarketToList, addMarketToList, advance, advanceImpl, autoAddCampaignMessage, bullet, buttonPressCancelled, callEvent, canMakeVisible, canMakeVisibleToCommSniffer, canMakeVisibleToPlayer, canTurnImportantOff, createDeleteConfirmationPrompt, createIntelInfo, createLargeDescription, endAfterDelay, endAfterDelay, endImmediately, forceAddNextFrame, getArrowData, getBackgroundGlowColor, getBaseDaysAfterEnd, getBulletColorForMode, getButtonStoryPointActionDelegate, getCancelText, getCircleBorderColorOverride, getCommMessageSound, getCommRelayRange, getConfirmationPromptWidth, getConfirmText, getDays, getDaysSincePlayerVisible, getDaysString, getListInfoParam, getPlayerVisibleTimestamp, getPostingLocation, getPostingRangeLY, getSortString, getSortStringNewestFirst, getSortStringNewestFirst, getSortTier, getSoundColonyThreat, getSoundLogUpdate, getSoundMajorPosting, getSoundMinorMessage, getSoundStandardPosting, getSoundStandardUpdate, getTagsForSort, getTimeRemainingFraction, getTitleColor, hasImportantButton, hasLargeDescription, hasSmallDescription, indent, isDone, isEnded, isEnding, isHidden, isImportant, isNew, isPlayerVisible, isSendingUpdate, notifyPlayerAboutToOpenIntelScreen, reportMadeVisibleToPlayer, reportPlayerClickedOn, reportRemovedIntel, runWhilePaused, sendUpdate, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, setForceAddNextFrame, setHidden, setImportant, setListInfoParam, setNew, setPlayerVisibleTimestamp, setPostingLocation, setPostingRangeLY, setPostingRangeLY, setTagsForSort, shouldRemoveIntel, storyActionConfirmed, tableRowClicked, unindentpublic static final java.lang.String HAS_TRI_TACH_DEAL
public static final java.lang.String BROKE_TRI_TACH_DEAL
public static float REP_FOR_BREAKING_DEAL
public static float MARKET_SIZE_TO_ACCESSIBILITY
public static java.lang.String KEY
public static java.lang.String BUTTON_END
public static java.lang.String UPDATE_PARAM_ACCEPTED
protected FactionAPI faction
protected TriTachyonDeal.AgreementEndingType endType
public static java.lang.String ACCESS_MOD_ID
public TriTachyonDeal(InteractionDialogAPI dialog)
public static boolean hasDeal()
public static void setHasDeal(boolean deal)
public static boolean brokeDeal()
public static void setBrokeDeal(boolean broke)
public static TriTachyonDeal get()
protected void notifyEnding()
notifyEnding in class BaseIntelPluginprotected void notifyEnded()
notifyEnded in class BaseIntelPluginprotected java.lang.Object readResolve()
public java.lang.String getBaseName()
public java.lang.String getAcceptedPostfix()
public java.lang.String getBrokenPostfix()
public java.lang.String getName()
getName in class BaseIntelPluginpublic FactionAPI getFactionForUIColors()
getFactionForUIColors in interface IntelInfoPlugingetFactionForUIColors in class BaseIntelPluginpublic java.lang.String getSmallDescriptionTitle()
getSmallDescriptionTitle in interface IntelInfoPlugingetSmallDescriptionTitle in class BaseIntelPluginprotected float computeColonySize(java.lang.String factionId)
protected float computeAccessibilityBonusPlayer()
protected float computeAccessibilityBonusTriTach()
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 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 getImportantIcon()
IntelInfoPlugingetImportantIcon in interface IntelInfoPlugingetImportantIcon in class BaseIntelPluginpublic SectorEntityToken getMapLocation(SectorMapAPI map)
getMapLocation in interface IntelInfoPlugingetMapLocation in class BaseIntelPluginpublic FactionAPI getFaction()
public void endAgreement(TriTachyonDeal.AgreementEndingType type, InteractionDialogAPI dialog)
public void buttonPressConfirmed(java.lang.Object buttonId, IntelUIAPI ui)
buttonPressConfirmed in interface IntelInfoPluginbuttonPressConfirmed in class BaseIntelPluginpublic 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 void commodityUpdated(java.lang.String commodityId)
commodityUpdated in interface EconomyAPI.EconomyUpdateListenerpublic void economyUpdated()
economyUpdated in interface EconomyAPI.EconomyUpdateListenerpublic void unapplyAccessModifier()
public boolean isEconomyListenerExpired()
isEconomyListenerExpired in interface EconomyAPI.EconomyUpdateListener