Class CurrentScore


  • public final class CurrentScore
    extends Object
    ThreadLocal score accessor during the initialization of Celesta.
    • Method Detail

      • get

        public static AbstractScore get()
        Returns score object. If global mode is on, single global score is returned. Otherwise score object on a per thread basis is returned.
      • set

        public static void set​(AbstractScore score)
        Sets score object. If global mode is on, the score is saved as a global score. Otherwise score object on a per thread basis is saved.
        Parameters:
        score - Score object.
      • global

        public static void global​(boolean isGlobal)
        Sets if current score is in global mode.
        Parameters:
        isGlobal - true - global mode on, false - off.