Starsector API
Loading...
Searching...
No Matches
BaseHostileActivityCause2.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.intel.events;
2
3import java.awt.Color;
4
5import com.fs.starfarer.api.campaign.StarSystemAPI;
6import com.fs.starfarer.api.ui.TooltipMakerAPI;
7import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
8import com.fs.starfarer.api.util.Misc;
9
11
13
17
18 public float getMagnitudeContribution(StarSystemAPI system) {
19 return 0;
20 }
21
22 public int getProgress() {
23 return 0;
24 }
25
26 public boolean shouldShow() {
27 return getProgress() != 0;
28 }
29
30 public String getDesc() {
31 return null;
32 }
33
34 public String getProgressStr() {
35 int p = getProgress();
36 if (p > 0) {
37 return "+" + p;
38 }
39 return "" + p;
40 }
41
43 if (getProgress() == 0) {
44 return Misc.getGrayColor();
45 }
46 return Misc.getTextColor();
47 }
48
52
53 public TooltipCreator getTooltip() {
54 return null;
55 }
56
57 public void addExtraRows(TooltipMakerAPI info, BaseEventIntel intel) {
58
59 }
60}
61