Class WarpEntityManager

java.lang.Object
me.iron.WarpSpace.Mod.WarpEntityManager

public class WarpEntityManager
extends java.lang.Object
has list of all entities in warp starts loop for them manages list gets info from checkloop
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.util.List<org.schema.game.common.controller.SegmentController> shipsInWarp
    List that holds references to every single ship currently in warp.
  • Constructor Summary

    Constructors 
    Constructor Description
    WarpEntityManager()  
  • Method Summary

    Modifier and Type Method Description
    static void DeclareWarpEntity​(org.schema.game.common.controller.SegmentController ship)
    declare ship a warpentity and start warp mechanics for ship. !
    static boolean isWarpEntity​(org.schema.game.common.controller.SegmentController ship)
    check if an entity is registered as a warp entity in the WarpEntityManager.shipsInWarp list.
    static void RemoveWarpEntity​(org.schema.game.common.controller.SegmentController ship)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • shipsInWarp

      public static java.util.List<org.schema.game.common.controller.SegmentController> shipsInWarp
      List that holds references to every single ship currently in warp. Is filled/cleaned regularly by the warpcheckloop.
  • Constructor Details

  • Method Details

    • DeclareWarpEntity

      public static void DeclareWarpEntity​(org.schema.game.common.controller.SegmentController ship)
      declare ship a warpentity and start warp mechanics for ship. !does not check if ship is already registered!
      Parameters:
      ship - Segmentcontroller to be registered
    • RemoveWarpEntity

      public static void RemoveWarpEntity​(org.schema.game.common.controller.SegmentController ship)
    • isWarpEntity

      public static boolean isWarpEntity​(org.schema.game.common.controller.SegmentController ship)
      check if an entity is registered as a warp entity in the WarpEntityManager.shipsInWarp list.
      Parameters:
      ship - segmentcontroller for ship
      Returns:
      boolean, true if a warp entity, false if not.