Interface GameState

All Superinterfaces:
Initializer

public interface GameState extends Initializer
The game state, also known as the phase of the game
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    end(Arena arena)
    Handle the logic of the arena at the end of the state.
    default void
    start(Arena arena)
    Handle the logic of the arena at the start of the state.
    default void
    update(Arena arena)
    Handle the logic of the arena on the "in-game" tick.

    Methods inherited from interface me.hsgamer.minigamecore.base.Initializer

    clear, init, postInit
  • Method Details

    • start

      default void start(Arena arena)
      Handle the logic of the arena at the start of the state. This is usually called on the first tick of the arena. Default will call update(Arena)
      Parameters:
      arena - the arena
    • update

      default void update(Arena arena)
      Handle the logic of the arena on the "in-game" tick. Called when the arena is ticked in the next ticks.
      Parameters:
      arena - the arena
    • end

      default void end(Arena arena)
      Handle the logic of the arena at the end of the state. This is usually called when the state of the arena is changed.
      Parameters:
      arena - the arena