Class PerseanLeagueMembership
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
com.fs.starfarer.api.impl.campaign.intel.PerseanLeagueMembership
- All Implemented Interfaces:
IntelInfoPlugin
,CommissionEndedListener
,EconomyTickListener
,EveryFrameScript
,CommRelayEntityPlugin.CommSnifferReadableIntel
,CallEvent.CallableEvent
public class PerseanLeagueMembership
extends BaseIntelPlugin
implements EconomyTickListener, CommissionEndedListener
-
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 String
static String
static final String
static final String
protected FactionAPI
static final String
static String
static final String
static final String
static final String
static final String
static int
static String
Fields inherited from class com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin
BULLET, BUTTON_DELETE, 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
void
buttonPressConfirmed
(Object buttonId, IntelUIAPI ui) int
static int
void
createConfirmationPrompt
(Object buttonId, TooltipMakerAPI prompt) void
createSmallDescription
(TooltipMakerAPI info, float width, float height) boolean
doesButtonHaveConfirmDialog
(Object buttonId) void
static PerseanLeagueMembership
get()
getIcon()
40x40, no icon if null.20x20, if null will use default.getIntelTags
(SectorMapAPI map) Method NEEDS to handle map being null gracefully.getName()
static int
static void
static boolean
static boolean
static boolean
static boolean
static boolean
protected void
protected void
protected Object
void
void
void
reportEconomyTick
(int iterIndex) static void
setDefeatedBlockade
(boolean value) static void
setDefeatedPunEx
(boolean value) static void
setLeagueMember
(boolean member) static void
setLeftLeagueWhenGoodDeal
(boolean value) static void
setPayingHouseHannan
(boolean value) static void
stopPayingHouseHannan
(boolean trustBroken, InteractionDialogAPI dialog) 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, 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, unindent
-
Field Details
-
TIMES_LEFT_LEAGUE_FOR_NO_REJOIN
public static int TIMES_LEFT_LEAGUE_FOR_NO_REJOIN -
PL_MEMBERSHIP_GOOD_DEAL
- See Also:
-
PAYING_HOUSE_HANNAN
- See Also:
-
LEFT_LEAGUE_WHEN_GOOD_DEAL
- See Also:
-
IS_LEAGUE_MEMBER
- See Also:
-
NUM_TIMES_LEFT_LEAGUE
- See Also:
-
DEFEATED_BLOCKADE
- See Also:
-
DEFEATED_PUN_EX
- See Also:
-
KEY
-
BUTTON_END
-
BUTTON_RENEGE_HANNAN
-
UPDATE_PARAM_ACCEPTED
-
faction
-
endType
-
-
Constructor Details
-
PerseanLeagueMembership
-
-
Method Details
-
getNumTimesLeftLeague
public static int getNumTimesLeftLeague() -
incrLeftLeagueCount
public static void incrLeftLeagueCount() -
isDefeatedBlockadeOrPunEx
public static boolean isDefeatedBlockadeOrPunEx() -
setDefeatedBlockade
public static void setDefeatedBlockade(boolean value) -
setDefeatedPunEx
public static void setDefeatedPunEx(boolean value) -
isGoodDeal
public static boolean isGoodDeal() -
isPayingHouseHannan
public static boolean isPayingHouseHannan() -
setPayingHouseHannan
public static void setPayingHouseHannan(boolean value) -
isLeftLeagueWhenGoodDeal
public static boolean isLeftLeagueWhenGoodDeal() -
setLeftLeagueWhenGoodDeal
public static void setLeftLeagueWhenGoodDeal(boolean value) -
isLeagueMember
public static boolean isLeagueMember() -
setLeagueMember
public static void setLeagueMember(boolean member) -
get
-
notifyEnding
protected void notifyEnding()- Overrides:
notifyEnding
in classBaseIntelPlugin
-
notifyEnded
protected void notifyEnded()- Overrides:
notifyEnded
in classBaseIntelPlugin
-
readResolve
-
getBaseName
-
getAcceptedPostfix
-
getBrokenPostfix
-
getEndedPostfix
-
getExpiredPostfix
-
getName
- Overrides:
getName
in classBaseIntelPlugin
-
getFactionForUIColors
- Specified by:
getFactionForUIColors
in interfaceIntelInfoPlugin
- Overrides:
getFactionForUIColors
in classBaseIntelPlugin
-
getSmallDescriptionTitle
- Specified by:
getSmallDescriptionTitle
in interfaceIntelInfoPlugin
- Overrides:
getSmallDescriptionTitle
in classBaseIntelPlugin
-
addBulletPoints
- Overrides:
addBulletPoints
in classBaseIntelPlugin
-
createSmallDescription
- Specified by:
createSmallDescription
in interfaceIntelInfoPlugin
- Overrides:
createSmallDescription
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:
-
getImportantIcon
Description copied from interface:IntelInfoPlugin
20x20, if null will use default.- Specified by:
getImportantIcon
in interfaceIntelInfoPlugin
- Overrides:
getImportantIcon
in classBaseIntelPlugin
- Returns:
-
getMapLocation
- Specified by:
getMapLocation
in interfaceIntelInfoPlugin
- Overrides:
getMapLocation
in classBaseIntelPlugin
-
reportEconomyMonthEnd
public void reportEconomyMonthEnd()- Specified by:
reportEconomyMonthEnd
in interfaceEconomyTickListener
-
reportEconomyTick
public void reportEconomyTick(int iterIndex) - Specified by:
reportEconomyTick
in interfaceEconomyTickListener
-
getMonthlyReportNode
-
computeCreditsPerMonth
public int computeCreditsPerMonth() -
computeCreditsPerTick
public static int computeCreditsPerTick() -
getFaction
-
endMembership
public void endMembership(PerseanLeagueMembership.AgreementEndingType type, InteractionDialogAPI dialog) -
stopPayingHouseHannan
-
buttonPressConfirmed
- Specified by:
buttonPressConfirmed
in interfaceIntelInfoPlugin
- Overrides:
buttonPressConfirmed
in classBaseIntelPlugin
-
createConfirmationPrompt
- Specified by:
createConfirmationPrompt
in interfaceIntelInfoPlugin
- Overrides:
createConfirmationPrompt
in classBaseIntelPlugin
-
doesButtonHaveConfirmDialog
- Specified by:
doesButtonHaveConfirmDialog
in interfaceIntelInfoPlugin
- Overrides:
doesButtonHaveConfirmDialog
in classBaseIntelPlugin
-
reportCommissionEnded
- Specified by:
reportCommissionEnded
in interfaceCommissionEndedListener
-