Uses of Class
lecturequiz.server.data.User

Packages that use User
lecturequiz.server.data   
lecturequiz.server.gamemodes   
lecturequiz.server.main   
 

Uses of User in lecturequiz.server.data
 

Constructors in lecturequiz.server.data with parameters of type User
Quiz(int id, java.lang.String name, java.lang.String description, java.util.ArrayList<Question> questions, User owner)
           
 

Uses of User in lecturequiz.server.gamemodes
 

Fields in lecturequiz.server.gamemodes declared as User
protected  User AbstractGameMode.owner
           
 

Fields in lecturequiz.server.gamemodes with type parameters of type User
protected  java.util.HashMap<User,java.lang.Integer> PlainGame.currentAnswers
           
protected  java.util.ArrayList<User> AbstractGameMode.players
           
protected  java.util.ArrayList<java.util.HashMap<User,java.lang.Integer>> PlainGame.statistics
           
 

Methods in lecturequiz.server.gamemodes that return User
 User AbstractGameMode.getOwner()
          Return the owner of this game
 

Methods in lecturequiz.server.gamemodes that return types with arguments of type User
 java.util.ArrayList<User> AbstractGameMode.getPlayers()
          Returns the list of players in this game
 

Methods in lecturequiz.server.gamemodes with parameters of type User
abstract  java.util.ArrayList<StatisticsEntry> AbstractGameMode.getOverallStatistics(User user)
          Returns the overall statistics for the entire game for a specified user.
 java.util.ArrayList<StatisticsEntry> PlainGame.getOverallStatistics(User user)
          Returns the overall statistics for the entire game for a specified user.
abstract  java.util.ArrayList<StatisticsEntry> AbstractGameMode.getQuestionStatistics(User user)
          Returns the statistics for the last question for the requested user.
 java.util.ArrayList<StatisticsEntry> PlainGame.getQuestionStatistics(User user)
          Returns the statistics for the last question for the requested user.
 int AbstractGameMode.joinGame(User player, java.util.List<ParameterEntry> parameters)
          Tries add a player to the game.
abstract  int AbstractGameMode.receiveAnswer(int answerID, User player)
          Receives an answer from a player and registers it.
 int PlainGame.receiveAnswer(int answerID, User player)
           
 void AbstractGameMode.removeUser(User user)
          Remove a user from the game
 void PlainGame.removeUser(User user)
           
 void AbstractGameMode.setOwner(User user)
          Set the owner of this game
 

Uses of User in lecturequiz.server.main
 

Methods in lecturequiz.server.main that return User
 User UserManager.addUser(java.lang.String username, int role)
          Adds a user to the user-pool.
 User DBInterface.authenticateUser(java.lang.String username, java.lang.String password)
          Tries to authenticate a user against the database.
 User MySQLDB.authenticateUser(java.lang.String username, java.lang.String password)
          Tries to authenticate a user against the database.
 User UserManager.authenticateUser(java.lang.String username, java.lang.String password)
          Tries to authenticate the user with the
 User DBInterface.getUser(int id)
          Returns a user from the database with the supplied ID.
 User MySQLDB.getUser(int id)
          Returns a user from the database with the supplied ID.
 

Methods in lecturequiz.server.main with parameters of type User
 void UserManager.addUser(User user)
          Adds a user to the list of users
 int GameManager.newQuiz(java.lang.String gameMode, int quizId, java.lang.String quizCode, User owner, java.util.List<ParameterEntry> parameters)
          Creates a new game instance with the supplied game mode, quiz and quiz code.
 void UserManager.removeUser(User user)
          Removes a user from the list of users and any games they are in
 int DBInterface.saveQuiz(FullQuizInfo fqi, User user)
          Saves a quiz to the database
 int MySQLDB.saveQuiz(FullQuizInfo fqi, User user)
          Saves a quiz to the database