Class KeySystemManager


  • public class KeySystemManager
    extends java.lang.Object
    • Constructor Detail

      • KeySystemManager

        public KeySystemManager​(com.badlogic.gdx.maps.tiled.TiledMapTileLayer tileLayer)
        Class constructor.
        Parameters:
        tileLayer - The tile layer to check for key systems on.
    • Method Detail

      • safeKeySystemsCount

        public static int safeKeySystemsCount()
        Returns:
        The number of key systems that have both not been destroyed and are not being destroyed.
      • beingDestroyedKeySystemsCount

        public static int beingDestroyedKeySystemsCount()
        Returns:
        The number of key systems that are currently being destroyed.
      • destroyedKeySystemsCount

        public static int destroyedKeySystemsCount()
        Returns:
        The number of key systems that have been destroyed.
      • getClosestKeySystem

        public static KeySystem getClosestKeySystem​(float x,
                                                    float y)
        Returns the closest KeySystem to the given coordinates.
        Parameters:
        x - x coord
        y - y coord
        Returns:
        Closest KeySystem
      • getBeingDestroyedKeySystems

        public static com.badlogic.gdx.utils.Array<KeySystem> getBeingDestroyedKeySystems()
        Returns:
        An array of KeySystems being destroyed
      • keySystemsCount

        public static int keySystemsCount()
        Returns:
        The number of key systems, no matter if they have been destroyed or not.
      • dispose

        public static void dispose()
        Called when this object is deleted.
      • getKeySystems

        public static com.badlogic.gdx.utils.Array<KeySystem> getKeySystems()
        Gets the key systems managed by this object.
        Returns:
        The list of key systems managed by this object.