Starsector API
Loading...
Searching...
No Matches
KantasProtectionOneTimeFactor.java
Go to the documentation of this file.
1
package
com.fs.starfarer.api.impl.campaign.intel.events;
2
3
import
java.awt.Color;
4
5
import
com.fs.starfarer.api.ui.TooltipMakerAPI;
6
import
com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
7
8
public
class
KantasProtectionOneTimeFactor
extends
BaseOneTimeFactor
{
9
10
public
KantasProtectionOneTimeFactor
(
int
points
) {
11
super(
points
);
12
}
13
14
@Override
15
public
String
getDesc
(
BaseEventIntel
intel) {
16
return
"Kanta's protection gained"
;
17
}
18
19
@Override
20
public
Color
getDescColor
(
BaseEventIntel
intel) {
21
return
super.getDescColor(intel);
22
}
23
24
@Override
25
public
TooltipCreator
getMainRowTooltip
(
BaseEventIntel
intel) {
26
return
new
BaseFactorTooltip
() {
27
@Override
28
public
void
createTooltip(TooltipMakerAPI tooltip,
boolean
expanded, Object tooltipParam) {
29
tooltip.addPara(
"You've recently gained Kanta's protection, and it's had a chilling effect on "
30
+
"hostile activity in and around your systems."
,
31
0f);
32
}
33
34
};
35
}
36
37
}
com.fs.starfarer.api.impl.campaign.intel.events.BaseEventIntel
Definition
BaseEventIntel.java:35
com.fs.starfarer.api.impl.campaign.intel.events.BaseFactorTooltip
Definition
BaseFactorTooltip.java:6
com.fs.starfarer.api.impl.campaign.intel.events.BaseOneTimeFactor
Definition
BaseOneTimeFactor.java:9
com.fs.starfarer.api.impl.campaign.intel.events.BaseOneTimeFactor.points
int points
Definition
BaseOneTimeFactor.java:13
com.fs.starfarer.api.impl.campaign.intel.events.KantasProtectionOneTimeFactor
Definition
KantasProtectionOneTimeFactor.java:8
com.fs.starfarer.api.impl.campaign.intel.events.KantasProtectionOneTimeFactor.getDescColor
Color getDescColor(BaseEventIntel intel)
Definition
KantasProtectionOneTimeFactor.java:20
com.fs.starfarer.api.impl.campaign.intel.events.KantasProtectionOneTimeFactor.getDesc
String getDesc(BaseEventIntel intel)
Definition
KantasProtectionOneTimeFactor.java:15
com.fs.starfarer.api.impl.campaign.intel.events.KantasProtectionOneTimeFactor.getMainRowTooltip
TooltipCreator getMainRowTooltip(BaseEventIntel intel)
Definition
KantasProtectionOneTimeFactor.java:25
com.fs.starfarer.api.impl.campaign.intel.events.KantasProtectionOneTimeFactor.KantasProtectionOneTimeFactor
KantasProtectionOneTimeFactor(int points)
Definition
KantasProtectionOneTimeFactor.java:10
src
com
fs
starfarer
api
impl
campaign
intel
events
KantasProtectionOneTimeFactor.java
Generated by
1.9.8