001package com.fs.starfarer.api.combat; 002 003import org.json.JSONObject; 004import org.lwjgl.util.vector.Vector2f; 005 006public interface DroneLauncherShipSystemAPI { 007 008 public static enum DroneOrders { 009 RECALL, 010 DEPLOY, 011 ATTACK, 012 } 013 014 /** 015 * @return contents of the .system file, in JSON form. 016 */ 017 JSONObject getSpecJson(); 018 019 /** 020 * @return where this drone should land, if it's being recalled. 021 * @param drone 022 * @return 023 */ 024 Vector2f getLandingLocation(ShipAPI drone); 025 026 027 DroneLauncherShipSystemAPI.DroneOrders getDroneOrders(); 028 029 int getIndex(ShipAPI drone); 030}