public class PlayerFleetPersonnelTracker extends java.lang.Object implements ColonyInteractionListener, GroundRaidObjectivesListener, CommodityTooltipModifier, CommodityIconProvider, CargoScreenListener
Modifier and Type | Class and Description |
---|---|
static class |
PlayerFleetPersonnelTracker.CommodityDescriptionProviderWrapper |
static class |
PlayerFleetPersonnelTracker.CommodityIconProviderWrapper |
static class |
PlayerFleetPersonnelTracker.PersonnelAtEntity |
static class |
PlayerFleetPersonnelTracker.PersonnelData |
static class |
PlayerFleetPersonnelTracker.PersonnelRank |
GroundRaidObjectivesListener.RaidResultData
Modifier and Type | Field and Description |
---|---|
protected SubmarketAPI |
currSubmarket |
protected java.util.List<PlayerFleetPersonnelTracker.PersonnelAtEntity> |
droppedOff |
static boolean |
KEEP_XP_DURING_TRANSFERS |
static java.lang.String |
KEY |
protected PlayerFleetPersonnelTracker.PersonnelData |
marineData |
static float |
MAX_EFFECTIVENESS_PERCENT |
static float |
MAX_LOSS_REDUCTION_PERCENT |
protected SectorEntityToken |
pods |
protected PlayerFleetPersonnelTracker.PersonnelData |
savedMarineData |
protected java.util.List<PlayerFleetPersonnelTracker.PersonnelAtEntity> |
savedPersonnelData |
static float |
XP_PER_RAID_MULT |
Constructor and Description |
---|
PlayerFleetPersonnelTracker() |
public static float XP_PER_RAID_MULT
public static float MAX_EFFECTIVENESS_PERCENT
public static float MAX_LOSS_REDUCTION_PERCENT
public static boolean KEEP_XP_DURING_TRANSFERS
public static final java.lang.String KEY
protected PlayerFleetPersonnelTracker.PersonnelData marineData
protected java.util.List<PlayerFleetPersonnelTracker.PersonnelAtEntity> droppedOff
protected transient SectorEntityToken pods
protected transient SubmarketAPI currSubmarket
protected transient PlayerFleetPersonnelTracker.PersonnelData savedMarineData
protected transient java.util.List<PlayerFleetPersonnelTracker.PersonnelAtEntity> savedPersonnelData
public static PlayerFleetPersonnelTracker getInstance()
public void reportCargoScreenOpened()
reportCargoScreenOpened
in interface CargoScreenListener
public void reportSubmarketOpened(SubmarketAPI submarket)
reportSubmarketOpened
in interface CargoScreenListener
public void reportPlayerLeftCargoPods(SectorEntityToken entity)
reportPlayerLeftCargoPods
in interface CargoScreenListener
public void reportPlayerNonMarketTransaction(PlayerMarketTransaction transaction, InteractionDialogAPI dialog)
reportPlayerNonMarketTransaction
in interface CargoScreenListener
public void reportPlayerMarketTransaction(PlayerMarketTransaction transaction)
reportPlayerMarketTransaction
in interface ColonyInteractionListener
public void processTransaction(PlayerMarketTransaction transaction, SectorEntityToken entity)
public static void transferPersonnel(PlayerFleetPersonnelTracker.PersonnelData from, PlayerFleetPersonnelTracker.PersonnelData to, int num, PlayerFleetPersonnelTracker.PersonnelData keepsXP)
public void reportRaidObjectivesAchieved(GroundRaidObjectivesListener.RaidResultData data, InteractionDialogAPI dialog, java.util.Map<java.lang.String,MemoryAPI> memoryMap)
reportRaidObjectivesAchieved
in interface GroundRaidObjectivesListener
public void update()
public void update(boolean withIntegrationFromCurrentLocation, boolean keepXP, CargoStackAPI stack)
public float getMarineEffectBonus(PlayerFleetPersonnelTracker.PersonnelData data)
public float getMarineLossesReductionPercent(PlayerFleetPersonnelTracker.PersonnelData data)
public void addSectionAfterPrice(TooltipMakerAPI info, float width, boolean expanded, CargoStackAPI stack)
addSectionAfterPrice
in interface CommodityTooltipModifier
public void reportPlayerClosedMarket(MarketAPI market)
reportPlayerClosedMarket
in interface ColonyInteractionListener
public void reportPlayerOpenedMarket(MarketAPI market)
reportPlayerOpenedMarket
in interface ColonyInteractionListener
public java.lang.String getIconName()
public int getHandlingPriority(java.lang.Object params)
GenericPluginManagerAPI.GenericPlugin
getHandlingPriority
in interface GenericPluginManagerAPI.GenericPlugin
public java.lang.String getRankIconName(CargoStackAPI stack)
getRankIconName
in interface CommodityIconProvider
public java.lang.String getIconName(CargoStackAPI stack)
getIconName
in interface CommodityIconProvider
public void saveData()
public void restoreData()
public void reportPlayerOpenedMarketAndCargoUpdated(MarketAPI market)
reportPlayerOpenedMarketAndCargoUpdated
in interface ColonyInteractionListener
public void modifyRaidObjectives(MarketAPI market, SectorEntityToken entity, java.util.List<GroundRaidObjectivePlugin> objectives, MarketCMD.RaidType type, int marineTokens, int priority)
GroundRaidObjectivesListener
modifyRaidObjectives
in interface GroundRaidObjectivesListener
protected void doCleanup(boolean withDroppedOff)
public SectorEntityToken getInteractionEntity()
public SubmarketAPI getSubmarketFor(CargoStackAPI stack)
stack
- public PlayerFleetPersonnelTracker.PersonnelAtEntity getDroppedOffAt(java.lang.String commodityId, SectorEntityToken entity, SubmarketAPI sub, boolean createIfNull)
public PlayerFleetPersonnelTracker.PersonnelAtEntity getPersonnelAtLocation(java.lang.String commodityId, SubmarketAPI sub)
public PlayerFleetPersonnelTracker.PersonnelData getMarineData()
public java.util.List<PlayerFleetPersonnelTracker.PersonnelAtEntity> getDroppedOff()
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.