001package com.fs.starfarer.api.impl.campaign.missions.hub; 002 003import com.fs.starfarer.api.campaign.econ.MarketAPI; 004 005 006 007public abstract class HubMissionWithBarEvent extends HubMissionWithSearch { 008 009 /** 010 * Called BEFORE the mission is create()'ed. 011 * 012 * Why use this vs aborting mission during creation? Mainly just for clarity/organizational purposes, 013 * but either way is fine. 014 * 015 * @param market 016 * @return 017 */ 018 public boolean shouldShowAtMarket(MarketAPI market) { 019 return true; 020 } 021 022// transient protected InteractionDialogAPI dialog; 023// transient protected TextPanelAPI text; 024// transient protected OptionPanelAPI options; 025// transient protected Map<String, MemoryAPI> memoryMap; 026// 027// public void init(InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) { 028//// this.dialog = dialog; 029//// this.memoryMap = memoryMap; 030//// if (dialog != null) { 031//// text = dialog.getTextPanel(); 032//// options = dialog.getOptionPanel(); 033//// } 034//// FireBest.fire(null, dialog, memoryMap, getTriggerPrefix() + "_startBar true"); 035// } 036// 037// public boolean shouldShowAtMarket(MarketAPI market) { 038// return true; 039// } 040// 041// public void addPromptAndOption(InteractionDialogAPI dialog, Map<String, MemoryAPI> memoryMap) { 042// setMissionId("cheapCom"); 043// setGenRandom(new Random()); 044// create(); 045// setGenRandom(null); 046// if (isMissionCreationAborted()) return; 047// 048// updateInteractionData(dialog, memoryMap); 049// 050// FireBest.fire(null, dialog, memoryMap, getTriggerPrefix() + "_blurbBar true"); 051// FireBest.fire(null, dialog, memoryMap, getTriggerPrefix() + "_optionBar true"); 052// } 053// 054// public void wasShownAtMarket(MarketAPI market) { 055// 056// } 057// 058// public boolean endWithContinue() { 059// return false; 060// } 061// 062// public boolean isDialogFinished() { 063// return false; 064// } 065// 066// public void optionSelected(String optionText, Object optionData) { 067// 068// } 069// 070// public boolean shouldRemoveEvent() { 071// return false; 072// } 073 074}