-
- All Implemented Interfaces:
public final class WeaponAIUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static BooleanapplyTagsToWeaponGroup(ShipAPI ship, Integer groupIndex, List<String> tags)final static UnitapplyTagsToWeapon(WeaponAPI weapon, List<String> tags)final static UnitsetAutofirePlugin(WeaponAPI weapon, AutofireAIPlugin plugin)final static UnitreloadAllShips(Integer storageIndex)final static UnitreloadShips(Integer storageIndex, List<ShipAPI> ships)final static UnitpersistTemporaryShipData(Integer storageIndex, List<ShipAPI> ships)final static List<String>loadTags(ShipAPI ship, Integer index, Integer storageIndex)final static List<String>loadAllTags(FleetMemberAPI ship)final static FloatangularDistanceFromWeapon(Vector2f entity, WeaponAPI weapon)final static FloatlinearDistanceFromWeapon(Vector2f entity, WeaponAPI weapon)final static BooleandetermineIfShotWillHit(Vector2f entity, Float collRadius, WeaponAPI weapon, Vector2f aimPoint)final static UnitsaveTags(ShipAPI ship, Integer groupIndex, Integer loadoutIndex, List<String> tags)final static UnitpersistTags(String shipId, Integer groupIndex, Integer loadoutIndex, List<String> tags)final static UnitsaveTagsInShip(ShipAPI ship, Integer groupIndex, List<String> tags, Integer storageIndex)final static List<String>loadPersistentTags(String shipId, Integer groupIndex, Integer loadoutIndex)final static IntegergetWeaponGroupIndex(WeaponAPI weapon)final static List<String>loadTagsFromShip(ShipAPI ship, Integer groupIndex, Integer storageIndex)final static BooleandoesShipHaveLocalTags(ShipAPI ship, Integer storageIndex)final static BooleandoesShipHaveLocalShipModes(ShipAPI ship, Integer storageIndex)-
-
Method Detail
-
applyTagsToWeaponGroup
final static Boolean applyTagsToWeaponGroup(ShipAPI ship, Integer groupIndex, List<String> tags)
-
applyTagsToWeapon
final static Unit applyTagsToWeapon(WeaponAPI weapon, List<String> tags)
-
setAutofirePlugin
final static Unit setAutofirePlugin(WeaponAPI weapon, AutofireAIPlugin plugin)
-
reloadAllShips
final static Unit reloadAllShips(Integer storageIndex)
-
reloadShips
final static Unit reloadShips(Integer storageIndex, List<ShipAPI> ships)
-
persistTemporaryShipData
final static Unit persistTemporaryShipData(Integer storageIndex, List<ShipAPI> ships)
-
loadAllTags
final static List<String> loadAllTags(FleetMemberAPI ship)
-
angularDistanceFromWeapon
final static Float angularDistanceFromWeapon(Vector2f entity, WeaponAPI weapon)
- Parameters:
entity- : Relative coordinates (velocity-compensated)
-
linearDistanceFromWeapon
final static Float linearDistanceFromWeapon(Vector2f entity, WeaponAPI weapon)
-
determineIfShotWillHit
final static Boolean determineIfShotWillHit(Vector2f entity, Float collRadius, WeaponAPI weapon, Vector2f aimPoint)
- Parameters:
entity- : In relative coordinatescollRadius- : Include any tolerances in hereaimPoint- : Point the weapon is aiming at, deduced from current weapon facing if not provided
-
saveTags
final static Unit saveTags(ShipAPI ship, Integer groupIndex, Integer loadoutIndex, List<String> tags)
-
persistTags
final static Unit persistTags(String shipId, Integer groupIndex, Integer loadoutIndex, List<String> tags)
-
saveTagsInShip
final static Unit saveTagsInShip(ShipAPI ship, Integer groupIndex, List<String> tags, Integer storageIndex)
-
loadPersistentTags
final static List<String> loadPersistentTags(String shipId, Integer groupIndex, Integer loadoutIndex)
-
getWeaponGroupIndex
final static Integer getWeaponGroupIndex(WeaponAPI weapon)
-
loadTagsFromShip
final static List<String> loadTagsFromShip(ShipAPI ship, Integer groupIndex, Integer storageIndex)
-
doesShipHaveLocalTags
final static Boolean doesShipHaveLocalTags(ShipAPI ship, Integer storageIndex)
-
doesShipHaveLocalShipModes
final static Boolean doesShipHaveLocalShipModes(ShipAPI ship, Integer storageIndex)
-
-
-
-