Starsector API
Loading...
Searching...
No Matches
BasePLEntry.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.plog;
2
3import java.awt.Color;
4
5import com.fs.starfarer.api.Global;
6import com.fs.starfarer.api.util.Misc;
7
8public 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}
static SectorAPI getSector()
Definition Global.java:59