public class PlayerFleetGenPluginImpl extends java.lang.Object implements InteractionDialogPlugin
| Modifier and Type | Class and Description |
|---|---|
static class |
PlayerFleetGenPluginImpl.FleetGenData |
protected static class |
PlayerFleetGenPluginImpl.FleetQuality |
protected static class |
PlayerFleetGenPluginImpl.OptionId |
| Modifier and Type | Field and Description |
|---|---|
protected PlayerFleetGenPluginImpl.FleetGenData |
data |
protected InteractionDialogAPI |
dialog |
protected java.util.Set<java.lang.String> |
fighters |
protected static java.awt.Color |
HIGHLIGHT_COLOR |
protected java.util.Set<java.lang.String> |
hullmods |
protected PlayerFleetGenPluginImpl.OptionId |
lastOptionMousedOver |
protected OptionPanelAPI |
options |
protected CampaignFleetAPI |
playerFleet |
protected java.util.Set<java.lang.String> |
ships |
protected TextPanelAPI |
textPanel |
protected java.util.Set<java.lang.String> |
unrestrictedFighters |
protected java.util.Set<java.lang.String> |
unrestrictedWeapons |
protected VisualPanelAPI |
visual |
protected java.util.Set<java.lang.String> |
weapons |
| Constructor and Description |
|---|
PlayerFleetGenPluginImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNoSkillOfficer(int level) |
void |
advance(float amount)
Get's called every frame.
|
void |
backFromEngagement(EngagementResultAPI result)
Get's called after a fleet battle connected to this dialog ends.
|
protected void |
createFleet() |
java.lang.Object |
getContext()
Usually, simply returning null is fine
|
java.util.Map<java.lang.String,MemoryAPI> |
getMemoryMap()
Usually, simply returning null or an empty map is fine.
|
protected MarketAPI |
getNearestMarket(boolean playerOnly) |
void |
init(InteractionDialogAPI dialog)
Initialize your GUI in here, by populating options, texts and images *
|
protected void |
initAvailable() |
void |
optionMousedOver(java.lang.String optionText,
java.lang.Object optionData)
Get's called when the player hovers over an option.
|
void |
optionSelected(java.lang.String text,
java.lang.Object optionData)
This gets called when the player clicks on an option.
|
protected void |
print(java.lang.String str) |
protected void |
selectAppendOrReplace() |
protected void |
selectOfficerLevel() |
protected void |
selectQuality() |
protected void |
selectShipsAndWeapons() |
void |
showBlueprintPicker() |
protected void |
showOfficerSelector() |
protected InteractionDialogAPI dialog
protected TextPanelAPI textPanel
protected OptionPanelAPI options
protected VisualPanelAPI visual
protected PlayerFleetGenPluginImpl.FleetGenData data
protected CampaignFleetAPI playerFleet
protected java.util.Set<java.lang.String> ships
protected java.util.Set<java.lang.String> fighters
protected java.util.Set<java.lang.String> weapons
protected java.util.Set<java.lang.String> unrestrictedFighters
protected java.util.Set<java.lang.String> unrestrictedWeapons
protected java.util.Set<java.lang.String> hullmods
protected static final java.awt.Color HIGHLIGHT_COLOR
protected PlayerFleetGenPluginImpl.OptionId lastOptionMousedOver
public PlayerFleetGenPluginImpl()
public void init(InteractionDialogAPI dialog)
InteractionDialogPlugininit in interface InteractionDialogPlugindialog - entry point for interacting with the dialog. You should probably store this in a member variablepublic java.util.Map<java.lang.String,MemoryAPI> getMemoryMap()
InteractionDialogPlugingetMemoryMap in interface InteractionDialogPluginpublic void backFromEngagement(EngagementResultAPI result)
InteractionDialogPluginbackFromEngagement in interface InteractionDialogPluginpublic void optionSelected(java.lang.String text, java.lang.Object optionData)
InteractionDialogPluginoptionSelected in interface InteractionDialogPlugintext - the name of the option, i.e. the first argument passed to addOptionoptionData - the data/identifier of the selected option. Cast this to the correct type. Don't forget to
null-check the result of the cast.protected MarketAPI getNearestMarket(boolean playerOnly)
protected void print(java.lang.String str)
protected void selectShipsAndWeapons()
protected void showOfficerSelector()
protected void selectQuality()
protected void selectOfficerLevel()
protected void selectAppendOrReplace()
public void optionMousedOver(java.lang.String optionText, java.lang.Object optionData)
InteractionDialogPluginoptionMousedOver in interface InteractionDialogPluginpublic void advance(float amount)
InteractionDialogPluginadvance in interface InteractionDialogPluginpublic java.lang.Object getContext()
InteractionDialogPlugingetContext in interface InteractionDialogPluginpublic void showBlueprintPicker()
protected void createFleet()
protected void initAvailable()
protected void addNoSkillOfficer(int level)