Class LoadedArenaManager<T,A extends Arena & ManagedArena<T>>

java.lang.Object
me.hsgamer.minigamecore.base.FeatureUnit
me.hsgamer.minigamecore.manager.ArenaManager<T,A>
me.hsgamer.minigamecore.manager.extra.LoadedArenaManager<T,A>
Type Parameters:
T - the type of the identifier of the arena
A - the type of the arena
All Implemented Interfaces:
Initializer

public abstract class LoadedArenaManager<T,A extends Arena & ManagedArena<T>> extends ArenaManager<T,A>
The ArenaManager with loaded arenas on initialization
  • Constructor Details

    • LoadedArenaManager

      public LoadedArenaManager(List<FeatureUnit> parentList)
      Create a new arena manager
      Parameters:
      parentList - the parent FeatureUnit list
    • LoadedArenaManager

      public LoadedArenaManager(FeatureUnit... parent)
      Create a new arena manager
      Parameters:
      parent - the parent FeatureUnit
  • Method Details

    • init

      public void init()
      Description copied from interface: Initializer
      Init the object
      Specified by:
      init in interface Initializer
      Overrides:
      init in class FeatureUnit
    • loadArenas

      protected abstract List<A> loadArenas()
      Load the arenas
      Returns:
      the arenas
    • reloadArena

      public void reloadArena()
      Reload the arenas
    • onArenaFailToLoad

      public void onArenaFailToLoad(A arena)
      Called when the arena fails to load
      Parameters:
      arena - the arena
    • onArenaSucceedToLoad

      public void onArenaSucceedToLoad(A arena)
      Called when the arena succeeds to load
      Parameters:
      arena - the arena