Package com.mygdx.auber.entities
Class KeySystemManager
- java.lang.Object
-
- com.mygdx.auber.entities.KeySystemManager
-
public class KeySystemManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description KeySystemManager(com.badlogic.gdx.maps.tiled.TiledMapTileLayer tileLayer)Class constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intbeingDestroyedKeySystemsCount()static intdestroyedKeySystemsCount()static voiddispose()Called when this object is deleted.static com.badlogic.gdx.utils.Array<KeySystem>getBeingDestroyedKeySystems()static KeySystemgetClosestKeySystem(float x, float y)Returns the closest KeySystem to the given coordinates.static com.badlogic.gdx.utils.Array<KeySystem>getKeySystems()Gets the key systems managed by this object.static intkeySystemsCount()static intsafeKeySystemsCount()
-
-
-
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 coordy- 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.
-
-