001package com.fs.starfarer.api.campaign.econ; 002 003import com.fs.starfarer.api.characters.MarketConditionSpecAPI; 004import com.fs.starfarer.api.impl.campaign.procgen.ConditionGenDataSpec; 005 006public interface MarketConditionAPI { 007 008 009 /** 010 * Id of the condition spec, i.e. "ore_sparse". 011 * @return 012 */ 013 String getId(); 014 String getName(); 015 MarketConditionPlugin getPlugin(); 016 017 /** 018 * Globally unique id for this specific condition, i.e. "ore_sparse_b44c3". 019 * @return 020 */ 021 String getIdForPluginModifications(); 022 boolean isSurveyed(); 023 void setSurveyed(boolean wasSurveyed); 024 boolean requiresSurveying(); 025 ConditionGenDataSpec getGenSpec(); 026 027// boolean isFromEvent(); 028// void setFromEvent(boolean isFromEvent); 029 030 /** 031 * Calls MarketConditionPlugin.isPlanetary(). 032 * 033 * "Planetary" conditions show up on the right side of the conditions widget. 034 * "Market" conditions show up in a group to the left of the planetary conditions. 035 * @return 036 */ 037 boolean isPlanetary(); 038 039 MarketConditionSpecAPI getSpec(); 040}