Package me.hsgamer.minigamecore.manager
Class ArenaManager
java.lang.Object
me.hsgamer.minigamecore.base.FeatureUnit
me.hsgamer.minigamecore.manager.ArenaManager
- All Implemented Interfaces:
Initializer
The manager that handles all arenas
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new arena managerArenaManager(FeatureUnit parentFeatureUnit) Create a new arena manager -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd an arenavoidclear()voidClear all arenasGet all arenasgetArenaByName(String name) Get the arena by its namevoidpostInit()voidremoveArena(Arena arena) Remove an arenaMethods inherited from class me.hsgamer.minigamecore.base.FeatureUnit
getFeature, getGameState, getParent, init, loadFeatures, loadGameStates
-
Constructor Details
-
ArenaManager
Create a new arena manager- Parameters:
parentFeatureUnit- the parentFeatureUnit
-
ArenaManager
public ArenaManager()Create a new arena manager
-
-
Method Details
-
postInit
public void postInit()- Specified by:
postInitin interfaceInitializer- Overrides:
postInitin classFeatureUnit
-
clear
public void clear()- Specified by:
clearin interfaceInitializer- Overrides:
clearin classFeatureUnit
-
getArenaByName
Get the arena by its name- Parameters:
name- the name of the arena- Returns:
- the arena
-
getAllArenas
Get all arenas- Returns:
- the list of arenas
-
addArena
Add an arena- Parameters:
arena- the arena
-
removeArena
Remove an arena- Parameters:
arena- the arena
-
clearAllArenas
public void clearAllArenas()Clear all arenas
-