Questions Class Reference

Responsible for the lesson questions and answers. More...

#include <Questions.h>

List of all members.

Public Member Functions

void addQuestion (QString question)
void addAnswer (QString answer)
void reset ()
int getQuestionNumberCount ()
int getQuestionNumberLiteral ()
int getQuestionNumberTotal ()
int getNextQuestion (QString &question)
int getNextAnswer (QString &answer)
int getAnyQuestion (QString &question)
int getAnyAnswer (QString &answer)
QList< QString > getQuestions ()
QList< QString > getAnswers ()
QList< int > getQuestionsAsked ()
int generateRandomNumber (int min, int max)


Detailed Description

Responsible for the lesson questions and answers.

The score class is responsible for both the questions and the answers that will be presented to the student during a lesson.

In addition to this, the class is also responsible for tracking:


Member Function Documentation

int Questions::generateRandomNumber int  min,
int  max
 

Generates a random number between min and max.

Parameters:
min the lowest number to produce
max the highest number to produce
Returns:
the random number that was generated

void Questions::reset  ) 
 

Resets the questions so that none have been asked


The documentation for this class was generated from the following files:
Generated on Sat Sep 16 21:02:44 2006 for Gibberish by  doxygen 1.4.6