public class LuddicPathBaseIntel extends BaseIntelPlugin implements EveryFrameScript, FleetEventListener, EconomyAPI.EconomyUpdateListener, RaidIntel.RaidDelegate
IntelInfoPlugin.ArrowData, IntelInfoPlugin.IntelSortTier, IntelInfoPlugin.ListInfoMode, IntelInfoPlugin.TableRowClickData
Modifier and Type | Field and Description |
---|---|
protected CampaignFleetAPI |
addedListenerTo |
protected PersonAPI |
baseCommander |
static java.lang.Object |
BOUNTY_EXPIRED_PARAM |
protected PirateBaseIntel.BaseBountyData |
bountyData |
static java.lang.Object |
DISCOVERED_PARAM |
protected float |
duration |
protected float |
elapsedDays |
protected SectorEntityToken |
entity |
protected boolean |
large |
static Logger |
log |
protected MarketAPI |
market |
static java.lang.String |
MEM_FLAG |
protected IntervalUtil |
monthlyInterval |
protected int |
monthsNoBounty |
static java.lang.String |
PATHER_BASE_COMMANDER |
protected java.util.Random |
random |
protected PersonBountyIntel.BountyResult |
result |
protected boolean |
sentBountyUpdate |
protected StarSystemAPI |
system |
BULLET, BUTTON_DELETE, ended, ending, endingTimeRemaining, forceAdd, hidden, important, INDENT, listInfoParam, neverClicked, postingLocation, postingRangeLY, timestamp
LIST_ITEM_TEXT_WIDTH, NEW_DAYS
Constructor and Description |
---|
LuddicPathBaseIntel(StarSystemAPI system,
java.lang.String factionId) |
Modifier and Type | Method and Description |
---|---|
protected void |
addBulletPoints(TooltipMakerAPI info,
IntelInfoPlugin.ListInfoMode mode) |
protected void |
advanceImpl(float amount) |
void |
commodityUpdated(java.lang.String commodityId) |
void |
createIntelInfo(TooltipMakerAPI info,
IntelInfoPlugin.ListInfoMode mode) |
void |
createSmallDescription(TooltipMakerAPI info,
float width,
float height) |
void |
economyUpdated() |
protected void |
endBounty() |
protected java.lang.String |
generateName() |
java.util.List<IntelInfoPlugin.ArrowData> |
getArrowData(SectorMapAPI map) |
PersonAPI |
getBaseCommander() |
SectorEntityToken |
getEntity() |
FactionAPI |
getFactionForUIColors() |
java.lang.String |
getIcon()
40x40, no icon if null.
|
static LuddicPathBaseIntel |
getIntelFor(MarketAPI market) |
static LuddicPathBaseIntel |
getIntelFor(StarSystemAPI system) |
java.util.Set<java.lang.String> |
getIntelTags(SectorMapAPI map)
Method NEEDS to handle map being null gracefully.
|
SectorEntityToken |
getMapLocation(SectorMapAPI map) |
MarketAPI |
getMarket() |
java.lang.String |
getName() |
java.lang.String |
getSmallDescriptionTitle() |
java.lang.String |
getSortString() |
protected Industry |
getStationIndustry() |
StarSystemAPI |
getSystem() |
float |
getTimeRemainingFraction()
Should return 0 if the concept doesn't apply.
|
boolean |
isEconomyListenerExpired() |
boolean |
isHidden()
Whether to actually show this piece of intel in the intel screen/show messages or updates for it,
despite it being technically known to the player.
|
boolean |
isLarge() |
void |
makeKnown() |
void |
makeKnown(TextPanelAPI text) |
protected void |
notifyEnded() |
protected void |
notifyEnding() |
void |
notifyRaidEnded(RaidIntel raid,
RaidIntel.RaidStageStatus status) |
protected java.lang.String |
pickStationType(boolean large) |
void |
reportBattleOccurred(CampaignFleetAPI fleet,
CampaignFleetAPI primaryWinner,
BattleAPI battle)
"fleet" will be null if the listener is registered with the ListenerManager, and non-null
if the listener is added directly to a fleet.
|
void |
reportFleetDespawnedToListener(CampaignFleetAPI fleet,
CampaignEventListener.FleetDespawnReason reason,
java.lang.Object param) |
boolean |
runWhilePaused() |
void |
setBaseCommander(PersonAPI baseCommander) |
protected void |
setBounty() |
protected void |
updateStationIfNeeded(boolean large) |
addBulletPoints, addDays, addDays, addDays, addDeleteButton, addDeleteButton, addGenericButton, addGenericButton, addMarketTable, addMarketToList, addMarketToList, advance, autoAddCampaignMessage, bullet, buttonPressCancelled, buttonPressConfirmed, callEvent, canMakeVisible, canMakeVisibleToCommSniffer, canMakeVisibleToPlayer, canTurnImportantOff, createConfirmationPrompt, createDeleteConfirmationPrompt, createLargeDescription, doesButtonHaveConfirmDialog, endAfterDelay, endAfterDelay, endImmediately, forceAddNextFrame, getBackgroundGlowColor, getBaseDaysAfterEnd, getBulletColorForMode, getButtonStoryPointActionDelegate, getCancelText, getCircleBorderColorOverride, getCommMessageSound, getCommRelayRange, getConfirmationPromptWidth, getConfirmText, getDays, getDaysSincePlayerVisible, getDaysString, getImportantIcon, getListInfoParam, getPlayerVisibleTimestamp, getPostingLocation, getPostingRangeLY, getSortTier, getSoundColonyThreat, getSoundLogUpdate, getSoundMajorPosting, getSoundMinorMessage, getSoundStandardPosting, getSoundStandardUpdate, getTitleColor, hasImportantButton, hasLargeDescription, hasSmallDescription, indent, isDone, isEnded, isEnding, isImportant, isNew, isPlayerVisible, isSendingUpdate, notifyPlayerAboutToOpenIntelScreen, reportMadeVisibleToPlayer, reportPlayerClickedOn, reportRemovedIntel, sendUpdate, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, sendUpdateIfPlayerHasIntel, setForceAddNextFrame, setHidden, setImportant, setListInfoParam, setNew, setPlayerVisibleTimestamp, setPostingLocation, setPostingRangeLY, setPostingRangeLY, shouldRemoveIntel, storyActionConfirmed, tableRowClicked, unindent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
advance, isDone
public static final java.lang.String PATHER_BASE_COMMANDER
public static java.lang.String MEM_FLAG
public static java.lang.Object BOUNTY_EXPIRED_PARAM
public static java.lang.Object DISCOVERED_PARAM
public static Logger log
protected PersonAPI baseCommander
protected StarSystemAPI system
protected MarketAPI market
protected SectorEntityToken entity
protected float elapsedDays
protected float duration
protected PirateBaseIntel.BaseBountyData bountyData
protected IntervalUtil monthlyInterval
protected int monthsNoBounty
protected boolean large
protected java.util.Random random
protected CampaignFleetAPI addedListenerTo
protected PersonBountyIntel.BountyResult result
protected boolean sentBountyUpdate
public LuddicPathBaseIntel(StarSystemAPI system, java.lang.String factionId)
public static LuddicPathBaseIntel getIntelFor(StarSystemAPI system)
public static LuddicPathBaseIntel getIntelFor(MarketAPI market)
public boolean isHidden()
IntelInfoPlugin
isHidden
in interface IntelInfoPlugin
isHidden
in class BaseIntelPlugin
public void notifyRaidEnded(RaidIntel raid, RaidIntel.RaidStageStatus status)
notifyRaidEnded
in interface RaidIntel.RaidDelegate
public StarSystemAPI getSystem()
protected java.lang.String pickStationType(boolean large)
protected Industry getStationIndustry()
protected void updateStationIfNeeded(boolean large)
protected void advanceImpl(float amount)
advanceImpl
in class BaseIntelPlugin
public void makeKnown()
public void makeKnown(TextPanelAPI text)
public float getTimeRemainingFraction()
IntelInfoPlugin
getTimeRemainingFraction
in interface IntelInfoPlugin
getTimeRemainingFraction
in class BaseIntelPlugin
protected void notifyEnding()
notifyEnding
in class BaseIntelPlugin
protected void notifyEnded()
notifyEnded
in class BaseIntelPlugin
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, java.lang.Object param)
reportFleetDespawnedToListener
in interface FleetEventListener
public void reportBattleOccurred(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle)
FleetEventListener
reportBattleOccurred
in interface FleetEventListener
public boolean runWhilePaused()
runWhilePaused
in interface EveryFrameScript
runWhilePaused
in class BaseIntelPlugin
protected void addBulletPoints(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
addBulletPoints
in class BaseIntelPlugin
public void createIntelInfo(TooltipMakerAPI info, IntelInfoPlugin.ListInfoMode mode)
createIntelInfo
in interface IntelInfoPlugin
createIntelInfo
in class BaseIntelPlugin
public java.lang.String getSortString()
getSortString
in interface IntelInfoPlugin
getSortString
in class BaseIntelPlugin
public java.lang.String getName()
getName
in class BaseIntelPlugin
public FactionAPI getFactionForUIColors()
getFactionForUIColors
in interface IntelInfoPlugin
getFactionForUIColors
in class BaseIntelPlugin
public java.lang.String getSmallDescriptionTitle()
getSmallDescriptionTitle
in interface IntelInfoPlugin
getSmallDescriptionTitle
in class BaseIntelPlugin
public void createSmallDescription(TooltipMakerAPI info, float width, float height)
createSmallDescription
in interface IntelInfoPlugin
createSmallDescription
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 SectorEntityToken getMapLocation(SectorMapAPI map)
getMapLocation
in interface IntelInfoPlugin
getMapLocation
in class BaseIntelPlugin
protected java.lang.String generateName()
public void commodityUpdated(java.lang.String commodityId)
commodityUpdated
in interface EconomyAPI.EconomyUpdateListener
public void economyUpdated()
economyUpdated
in interface EconomyAPI.EconomyUpdateListener
public boolean isEconomyListenerExpired()
isEconomyListenerExpired
in interface EconomyAPI.EconomyUpdateListener
public MarketAPI getMarket()
protected void setBounty()
protected void endBounty()
public java.util.List<IntelInfoPlugin.ArrowData> getArrowData(SectorMapAPI map)
getArrowData
in interface IntelInfoPlugin
getArrowData
in class BaseIntelPlugin
public SectorEntityToken getEntity()
public boolean isLarge()
public PersonAPI getBaseCommander()
public void setBaseCommander(PersonAPI baseCommander)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.