Starsector API
Loading...
Searching...
No Matches
PLStatCredits.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 PLStatCredits extends BasePLStat {
9
10 @Override
11 public long getCurrentValue() {
12 return (long) Global.getSector().getPlayerFleet().getCargo().getCredits().get();
13 }
14
15 @Override
16 public Color getGraphColor() {
17 return Misc.getHighlightColor();
18 }
19
20 @Override
21 public String getGraphLabel() {
22 return "Credits";
23 }
24
25 @Override
26 public String getId() {
27 return "credits";
28 }
29
30 public long getGraphMax() {
31 return CREDITS_MAX;
32 }
33
34 public String getHoverText(long value) {
35 return Misc.getDGSCredits(value);
36 }
37}
static SectorAPI getSector()
Definition Global.java:59