001package com.fs.starfarer.api.impl.campaign.plog;
002
003import java.awt.Color;
004
005import com.fs.starfarer.api.Global;
006import com.fs.starfarer.api.util.Misc;
007
008public class BasePLEntry implements PLEntry {
009
010        // persists across saves but that doesn't matter
011        // point is to maintain order of events that happen at the same point in time
012        public static long offset = 0;
013        
014        protected String text;
015        protected long timestamp;
016        
017        public BasePLEntry(String text) {
018                this.text = text;
019                timestamp = Global.getSector().getClock().getTimestamp() + offset;
020                offset++;
021        }
022
023        public Color getColor() {
024                return Misc.getTextColor();
025        }
026
027        public String getText() {
028                return text;
029        }
030        
031        public long getTimestamp() {
032                return timestamp;
033        }
034
035}