Class PointsManager


  • public class PointsManager
    extends java.lang.Object
    Manages the assignment of points to the player.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static int points  
    • Constructor Summary

      Constructors 
      Constructor Description
      PointsManager()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void change​(int amount)
      Change the number of points the player has.
      static int get()
      Get the number of points the player has.
      static void set​(int points)
      Set the number of points the player has.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • points

        protected static int points
    • Constructor Detail

      • PointsManager

        public PointsManager()
    • Method Detail

      • get

        public static int get()
        Get the number of points the player has.
      • set

        public static void set​(int points)
        Set the number of points the player has.
      • change

        public static void change​(int amount)
        Change the number of points the player has.