Class BaseEventFactor
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.events.BaseEventFactor
- All Implemented Interfaces:
EventFactor
- Direct Known Subclasses:
BaseHostileActivityFactor
,BaseOneTimeFactor
,HABlowbackFactor
,HAColonyDefensesFactor
,HADefensiveMeasuresFactor
-
Field Summary
FieldsFields inherited from interface com.fs.starfarer.api.impl.campaign.intel.events.EventFactor
NEGATED_FACTOR_PROGRESS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBorder
(TooltipMakerAPI info, Color c) The first element in the stage info needs to have a before-padding of 5 pixels.void
addBulletPointForOneTimeFactor
(BaseEventIntel intel, TooltipMakerAPI info, Color tc, float initPad) void
addExtraRows
(TooltipMakerAPI info, BaseEventIntel intel) void
advance
(float amount) float
getAllProgressMult
(BaseEventIntel intel) For all factors, not just this one.getDesc
(BaseEventIntel intel) getDescColor
(BaseEventIntel intel) getMainRowTooltip
(BaseEventIntel intel) int
getProgress
(BaseEventIntel intel) getProgressColor
(BaseEventIntel intel) getProgressStr
(BaseEventIntel intel) boolean
boolean
void
void
void
boolean
shouldShow
(BaseEventIntel intel)
-
Field Details
-
TOOLTIP_WIDTH
public static float TOOLTIP_WIDTH
-
-
Constructor Details
-
BaseEventFactor
public BaseEventFactor()
-
-
Method Details
-
getProgress
- Specified by:
getProgress
in interfaceEventFactor
-
getAllProgressMult
Description copied from interface:EventFactor
For all factors, not just this one.- Specified by:
getAllProgressMult
in interfaceEventFactor
-
shouldShow
- Specified by:
shouldShow
in interfaceEventFactor
-
getDesc
- Specified by:
getDesc
in interfaceEventFactor
-
getProgressStr
- Specified by:
getProgressStr
in interfaceEventFactor
-
getDescColor
- Specified by:
getDescColor
in interfaceEventFactor
-
getProgressColor
- Specified by:
getProgressColor
in interfaceEventFactor
-
getMainRowTooltip
- Specified by:
getMainRowTooltip
in interfaceEventFactor
-
getMainRowTooltip
- Specified by:
getMainRowTooltip
in interfaceEventFactor
-
isOneTime
public boolean isOneTime()- Specified by:
isOneTime
in interfaceEventFactor
-
isExpired
public boolean isExpired()- Specified by:
isExpired
in interfaceEventFactor
-
addExtraRows
- Specified by:
addExtraRows
in interfaceEventFactor
-
notifyEventEnding
public void notifyEventEnding()- Specified by:
notifyEventEnding
in interfaceEventFactor
-
notifyEventEnded
public void notifyEventEnded()- Specified by:
notifyEventEnded
in interfaceEventFactor
-
addBorder
The first element in the stage info needs to have a before-padding of 5 pixels.- Parameters:
info
-
-
addBulletPointForOneTimeFactor
public void addBulletPointForOneTimeFactor(BaseEventIntel intel, TooltipMakerAPI info, Color tc, float initPad) - Specified by:
addBulletPointForOneTimeFactor
in interfaceEventFactor
-
notifyFactorRemoved
public void notifyFactorRemoved()- Specified by:
notifyFactorRemoved
in interfaceEventFactor
-
advance
public void advance(float amount) - Specified by:
advance
in interfaceEventFactor
-