gameClient\DB_Info - HilaShoshan/RobotsGame GitHub Wiki

A class responsible for data analysis from DataBase. Reads all required data, updates, and saves it.

Methods:

  1. public static int getNumGames()

    • returns the number of games the the user has played on the server
    • (by id).
  2. public static int getCurrLevel()

    • returns the cuurent level of the user: depending on how many steps he has gone through so far.
  3. public static int getBestScore(int level)

    • returns the best score in a specific level from the list.
  4. public static int getPos(int level)

    • returns the position in class in specific level.
    • (every games that students have played in the server - on the database).