Starsector API
Loading...
Searching...
No Matches
LuddicPathAgreementHostileActivityCause2.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.campaign.StarSystemAPI;
6
import
com.fs.starfarer.api.impl.campaign.rulecmd.HA_CMD;
7
import
com.fs.starfarer.api.ui.TooltipMakerAPI;
8
import
com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
9
import
com.fs.starfarer.api.util.Misc;
10
11
public
class
LuddicPathAgreementHostileActivityCause2
extends
BaseHostileActivityCause2
{
12
13
public
LuddicPathAgreementHostileActivityCause2
(
HostileActivityEventIntel
intel
) {
14
super(
intel
);
15
}
16
17
@Override
18
public
boolean
shouldShow
() {
19
return
HA_CMD.playerHasPatherAgreement();
20
}
21
22
@Override
23
public
Color
getDescColor
(
BaseEventIntel
intel
) {
24
return
Misc.getPositiveHighlightColor();
25
}
26
27
@Override
28
public
String
getProgressStr
() {
29
return
""
;
30
}
31
32
@Override
33
public
TooltipCreator
getTooltip
() {
34
return
new
BaseFactorTooltip
() {
35
public
void
createTooltip(TooltipMakerAPI tooltip,
boolean
expanded, Object tooltipParam) {
36
LuddicPathHostileActivityFactor
.
addAgreementStatus
(tooltip, 0f);
37
}
38
};
39
}
40
41
public
int
getProgress
() {
42
return
0;
43
}
44
45
public
String
getDesc
() {
46
return
"Pather agreement"
;
47
}
48
49
public
float
getMagnitudeContribution
(StarSystemAPI system) {
50
return
0f;
51
}
52
53
}
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.BaseHostileActivityCause2
Definition
BaseHostileActivityCause2.java:10
com.fs.starfarer.api.impl.campaign.intel.events.BaseHostileActivityCause2.intel
HostileActivityEventIntel intel
Definition
BaseHostileActivityCause2.java:12
com.fs.starfarer.api.impl.campaign.intel.events.HostileActivityEventIntel
Definition
HostileActivityEventIntel.java:40
com.fs.starfarer.api.impl.campaign.intel.events.LuddicPathAgreementHostileActivityCause2
Definition
LuddicPathAgreementHostileActivityCause2.java:11
com.fs.starfarer.api.impl.campaign.intel.events.LuddicPathAgreementHostileActivityCause2.getDesc
String getDesc()
Definition
LuddicPathAgreementHostileActivityCause2.java:45
com.fs.starfarer.api.impl.campaign.intel.events.LuddicPathAgreementHostileActivityCause2.shouldShow
boolean shouldShow()
Definition
LuddicPathAgreementHostileActivityCause2.java:18
com.fs.starfarer.api.impl.campaign.intel.events.LuddicPathAgreementHostileActivityCause2.getMagnitudeContribution
float getMagnitudeContribution(StarSystemAPI system)
Definition
LuddicPathAgreementHostileActivityCause2.java:49
com.fs.starfarer.api.impl.campaign.intel.events.LuddicPathAgreementHostileActivityCause2.LuddicPathAgreementHostileActivityCause2
LuddicPathAgreementHostileActivityCause2(HostileActivityEventIntel intel)
Definition
LuddicPathAgreementHostileActivityCause2.java:13
com.fs.starfarer.api.impl.campaign.intel.events.LuddicPathAgreementHostileActivityCause2.getDescColor
Color getDescColor(BaseEventIntel intel)
Definition
LuddicPathAgreementHostileActivityCause2.java:23
com.fs.starfarer.api.impl.campaign.intel.events.LuddicPathAgreementHostileActivityCause2.getProgressStr
String getProgressStr()
Definition
LuddicPathAgreementHostileActivityCause2.java:28
com.fs.starfarer.api.impl.campaign.intel.events.LuddicPathAgreementHostileActivityCause2.getTooltip
TooltipCreator getTooltip()
Definition
LuddicPathAgreementHostileActivityCause2.java:33
com.fs.starfarer.api.impl.campaign.intel.events.LuddicPathAgreementHostileActivityCause2.getProgress
int getProgress()
Definition
LuddicPathAgreementHostileActivityCause2.java:41
com.fs.starfarer.api.impl.campaign.intel.events.LuddicPathHostileActivityFactor
Definition
LuddicPathHostileActivityFactor.java:41
com.fs.starfarer.api.impl.campaign.intel.events.LuddicPathHostileActivityFactor.addAgreementStatus
static void addAgreementStatus(TooltipMakerAPI tooltip, float initPad)
Definition
LuddicPathHostileActivityFactor.java:112
src
com
fs
starfarer
api
impl
campaign
intel
events
LuddicPathAgreementHostileActivityCause2.java
Generated by
1.9.8