Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GameRoot

The game root is basically the whole game state at a given point, combining all important classes. We don't have globals, but this class is passed to almost all game classes.

Hierarchy

Index

Constructors

constructor

  • Constructs a new game root

    Parameters

    • app: any

    Returns GameRoot

Methods

destruct

  • destruct(): void
  • Destructs the game root

    Returns void

initializeRngs

  • initializeRngs(): void
  • Returns void

prepareGameOver

  • prepareGameOver(): void
  • Prepares the root for game over, this sets the right flags and detaches all signals so no bad stuff happens

    Returns void

reset

  • reset(): void
  • Resets the whole root and removes all properties

    Returns void