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 arenaA
- 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 Summary
ConstructorsConstructorDescriptionLoadedArenaManager
(List<FeatureUnit> parentList) Create a new arena managerLoadedArenaManager
(FeatureUnit... parent) Create a new arena manager -
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
Init the objectLoad the arenasvoid
onArenaFailToLoad
(A arena) Called when the arena fails to loadvoid
onArenaSucceedToLoad
(A arena) Called when the arena succeeds to loadvoid
Reload the arenasMethods inherited from class me.hsgamer.minigamecore.manager.ArenaManager
addArena, clear, clearAllArenas, containsArena, createArena, getAllArenas, getArena, getArenaMap, postInit, removeArena
Methods inherited from class me.hsgamer.minigamecore.base.FeatureUnit
getFeature, getFeatures, getGameState, getGameStates, getParent, getParentList, loadFeatures, loadGameStates
-
Constructor Details
-
LoadedArenaManager
Create a new arena manager- Parameters:
parentList
- the parentFeatureUnit
list
-
LoadedArenaManager
Create a new arena manager- Parameters:
parent
- the parentFeatureUnit
-
-
Method Details
-
init
public void init()Description copied from interface:Initializer
Init the object- Specified by:
init
in interfaceInitializer
- Overrides:
init
in classFeatureUnit
-
loadArenas
Load the arenas- Returns:
- the arenas
-
reloadArena
public void reloadArena()Reload the arenas -
onArenaFailToLoad
Called when the arena fails to load- Parameters:
arena
- the arena
-
onArenaSucceedToLoad
Called when the arena succeeds to load- Parameters:
arena
- the arena
-