001package com.fs.starfarer.api.campaign.econ; 002 003import com.fs.starfarer.api.combat.StatBonus; 004 005/** 006 * DO NOT store references to market connections, as the actual connection may not be persisted and a copy 007 * saved through a reference may not be the "real" connection after a savegame is loaded. 008 * 009 * @author Alex Mosolov 010 * 011 * Copyright 2016 Fractal Softworks, LLC 012 */ 013public interface MarketConnectionAPI { 014 String getId(); 015 016 float getModifiedPrice(float price); 017 float getSmugglePrice(float price); 018 StatBonus getSmugglingMod(); 019 StatBonus getPriceMod(); 020 boolean isAllTradeIsSmuggling(); 021 void setAllTradeIsSmuggling(boolean allTradeIsSmuggling); 022 023 String getMarketIdOne(); 024 String getMarketIdTwo(); 025 026 boolean isEnabled(); 027 void setEnabled(boolean enabled); 028}