All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Entity.Score

java.lang.Object
   |
   +----Entity.Score

public class Score
extends Object
A class that keep score for quizzing


Constructor Index

 o Score()
This constuctor will create an score object

Method Index

 o addAssists()
This method will Add one to the number of requested assists(hints)
 o addCorrect()
This method will Add one to the number of correct answers
 o addErrors()
This method will Add one to the number of incorrect answers
 o getAssists()
This method will return the number of assists(hints) that the user requested
 o getCorrect()
This method will return the number of correct answers
 o getErrors()
This method will return the number of incorrect answers
 o getTotal()
This method will return the total user attempts (number of errors plus number correct)
 o resetScore()
This method will Reset all score variables to zero

Constructors

 o Score
 public Score()
This constuctor will create an score object

Methods

 o getCorrect
 public int getCorrect()
This method will return the number of correct answers

Returns:
int number of correct answers
 o getErrors
 public int getErrors()
This method will return the number of incorrect answers

Returns:
int number of incorrect answers
 o getAssists
 public int getAssists()
This method will return the number of assists(hints) that the user requested

Returns:
int number of assists
 o getTotal
 public int getTotal()
This method will return the total user attempts (number of errors plus number correct)

Returns:
int number of attempts
 o addCorrect
 public void addCorrect()
This method will Add one to the number of correct answers

Returns:
none
 o addErrors
 public void addErrors()
This method will Add one to the number of incorrect answers

Returns:
none
 o addAssists
 public void addAssists()
This method will Add one to the number of requested assists(hints)

Returns:
none
 o resetScore
 public void resetScore()
This method will Reset all score variables to zero

Returns:
none

All Packages  Class Hierarchy  This Package  Previous  Next  Index