Class QuizLocation

java.lang.Object
  |
  +--Location
        |
        +--QuizLocation

public class QuizLocation
extends Location

this class extends the basic Location object to store the user answers to questions and x and y locations on the map if the program is run in application mode the user can print the results to an output file...


Field Summary
static int UNDEFINED
           
 
Fields inherited from class Location
Answer, labx, laby, name, numAnswers, state, x, y
 
Constructor Summary
QuizLocation(Location l, int numQuizQuestions, boolean[] activeQuestions)
           
 
Method Summary
 void print()
           
 void printToFile(java.io.RandomAccessFile outfile)
          // method : printToFile // description : prints out the actual answers as well as the users answers to a file
 
Methods inherited from class Location
setAnswer, setAnswers, setlabx, setlaby, setName, setNumAnswers, setState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
Constructor Detail

QuizLocation

public QuizLocation(Location l,
                    int numQuizQuestions,
                    boolean[] activeQuestions)
Method Detail

printToFile

public void printToFile(java.io.RandomAccessFile outfile)
// method : printToFile // description : prints out the actual answers as well as the users answers to a file
Overrides:
printToFile in class Location

print

public void print()
Overrides:
print in class Location