Class ArenaManager

java.lang.Object
me.hsgamer.minigamecore.base.FeatureUnit
me.hsgamer.minigamecore.manager.ArenaManager
All Implemented Interfaces:
Initializer

public abstract class ArenaManager extends FeatureUnit
The manager that handles all arenas
  • Constructor Details

    • ArenaManager

      public ArenaManager(FeatureUnit parentFeatureUnit)
      Create a new arena manager
      Parameters:
      parentFeatureUnit - the parent FeatureUnit
    • ArenaManager

      public ArenaManager()
      Create a new arena manager
  • Method Details

    • postInit

      public void postInit()
      Specified by:
      postInit in interface Initializer
      Overrides:
      postInit in class FeatureUnit
    • clear

      public void clear()
      Specified by:
      clear in interface Initializer
      Overrides:
      clear in class FeatureUnit
    • getArenaByName

      public Optional<Arena> getArenaByName(String name)
      Get the arena by its name
      Parameters:
      name - the name of the arena
      Returns:
      the arena
    • getAllArenas

      public List<Arena> getAllArenas()
      Get all arenas
      Returns:
      the list of arenas
    • addArena

      public boolean addArena(Arena arena)
      Add an arena
      Parameters:
      arena - the arena
    • removeArena

      public void removeArena(Arena arena)
      Remove an arena
      Parameters:
      arena - the arena
    • clearAllArenas

      public void clearAllArenas()
      Clear all arenas