Starsector API
Loading...
Searching...
No Matches
SModRecord.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.plog;
2
3import java.lang.ref.WeakReference;
4import java.util.ArrayList;
5import java.util.List;
6
7import com.fs.starfarer.api.Global;
8import com.fs.starfarer.api.fleet.FleetMemberAPI;
9
16public class SModRecord {
17
18 protected WeakReference<FleetMemberAPI> member;
19 protected List<String> smods = new ArrayList<String>();
20 protected int spSpent;
21 protected float bonusXPFractionGained;
22 protected long timestamp;
23
24 public SModRecord(FleetMemberAPI member) {
25 this.member = new WeakReference<FleetMemberAPI>(member);
26 this.timestamp = Global.getSector().getClock().getTimestamp();
27 }
28
29 public FleetMemberAPI getMember() {
30 return member == null ? null : member.get();
31 }
32 public void setMember(FleetMemberAPI member) {
33 this.member = new WeakReference<FleetMemberAPI>(member);
34 }
35 public List<String> getSMods() {
36 return smods;
37 }
38 public void setSmods(List<String> smods) {
39 this.smods = smods;
40 }
41 public long getTimestamp() {
42 return timestamp;
43 }
44 public void setTimestamp(long timestamp) {
45 this.timestamp = timestamp;
46 }
47
48 public int getSPSpent() {
49 return spSpent;
50 }
51
52 public void setSPSpent(int spSpent) {
53 this.spSpent = spSpent;
54 }
55
56 public float getBonusXPFractionGained() {
58 }
59
61 this.bonusXPFractionGained = bonusXPFractionGained;
62 }
63
64
65}
static SectorAPI getSector()
Definition Global.java:59
void setBonusXPFractionGained(float bonusXPFractionGained)