Starsector API
Loading...
Searching...
No Matches
BasePLEntry.java
Go to the documentation of this file.
1
package
com.fs.starfarer.api.impl.campaign.plog;
2
3
import
java.awt.Color;
4
5
import
com.fs.starfarer.api.Global;
6
import
com.fs.starfarer.api.util.Misc;
7
8
public
class
BasePLEntry
implements
PLEntry
{
9
10
// persists across saves but that doesn't matter
11
// point is to maintain order of events that happen at the same point in time
12
public
static
long
offset
= 0;
13
14
protected
String
text
;
15
protected
long
timestamp
;
16
17
public
BasePLEntry
(String
text
) {
18
this.text =
text
;
19
timestamp
=
Global
.
getSector
().getClock().getTimestamp() +
offset
;
20
offset
++;
21
}
22
23
public
Color
getColor
() {
24
return
Misc.getTextColor();
25
}
26
27
public
String
getText
() {
28
return
text
;
29
}
30
31
public
long
getTimestamp
() {
32
return
timestamp
;
33
}
34
35
}
com.fs.starfarer.api.Global
Definition
Global.java:13
com.fs.starfarer.api.Global.getSector
static SectorAPI getSector()
Definition
Global.java:59
com.fs.starfarer.api.impl.campaign.plog.BasePLEntry
Definition
BasePLEntry.java:8
com.fs.starfarer.api.impl.campaign.plog.BasePLEntry.BasePLEntry
BasePLEntry(String text)
Definition
BasePLEntry.java:17
com.fs.starfarer.api.impl.campaign.plog.BasePLEntry.timestamp
long timestamp
Definition
BasePLEntry.java:15
com.fs.starfarer.api.impl.campaign.plog.BasePLEntry.offset
static long offset
Definition
BasePLEntry.java:12
com.fs.starfarer.api.impl.campaign.plog.BasePLEntry.getColor
Color getColor()
Definition
BasePLEntry.java:23
com.fs.starfarer.api.impl.campaign.plog.BasePLEntry.text
String text
Definition
BasePLEntry.java:14
com.fs.starfarer.api.impl.campaign.plog.BasePLEntry.getTimestamp
long getTimestamp()
Definition
BasePLEntry.java:31
com.fs.starfarer.api.impl.campaign.plog.BasePLEntry.getText
String getText()
Definition
BasePLEntry.java:27
com.fs.starfarer.api.impl.campaign.plog.PLEntry
Definition
PLEntry.java:5
src
com
fs
starfarer
api
impl
campaign
plog
BasePLEntry.java
Generated by
1.9.8