public class HistorianBarEvent extends BaseBarEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
HistorianBarEvent.OptionId |
| Modifier and Type | Field and Description |
|---|---|
protected HistorianData.HistorianOffer |
currentOffer |
protected MarketAPI |
market |
static int |
MIN_SNAPSHOTS_TO_SHOW_PLOG |
protected java.util.List<HistorianData.HistorianOffer> |
offers |
static float |
PROB_TO_SHOW |
protected java.util.Random |
random |
protected long |
seed |
dialog, done, memoryMap, noContinue, options, shownAt, text| Constructor and Description |
|---|
HistorianBarEvent() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPromptAndOption(InteractionDialogAPI dialog,
java.util.Map<java.lang.String,MemoryAPI> memoryMap) |
protected java.lang.String |
getOptionText() |
protected java.lang.String |
getPrompt() |
void |
init(InteractionDialogAPI dialog,
java.util.Map<java.lang.String,MemoryAPI> memoryMap) |
void |
optionSelected(java.lang.String optionText,
java.lang.Object optionData) |
protected void |
regen(MarketAPI market) |
boolean |
shouldShowAtMarket(MarketAPI market) |
advance, endWithContinue, getBarEventId, getShownAt, isAlwaysShow, isDialogFinished, shouldRemoveEvent, wasShownAtMarketpublic static int MIN_SNAPSHOTS_TO_SHOW_PLOG
public static float PROB_TO_SHOW
protected long seed
protected transient java.util.Random random
protected transient java.util.List<HistorianData.HistorianOffer> offers
protected transient HistorianData.HistorianOffer currentOffer
public HistorianBarEvent()
public boolean shouldShowAtMarket(MarketAPI market)
shouldShowAtMarket in interface PortsideBarEventshouldShowAtMarket in class BaseBarEventpublic void addPromptAndOption(InteractionDialogAPI dialog, java.util.Map<java.lang.String,MemoryAPI> memoryMap)
addPromptAndOption in interface PortsideBarEventaddPromptAndOption in class BaseBarEventprotected java.lang.String getOptionText()
protected java.lang.String getPrompt()
public void init(InteractionDialogAPI dialog, java.util.Map<java.lang.String,MemoryAPI> memoryMap)
init in interface PortsideBarEventinit in class BaseBarEventpublic void optionSelected(java.lang.String optionText, java.lang.Object optionData)
optionSelected in interface PortsideBarEventoptionSelected in class BaseBarEvent