|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jdwsoftware.wfh.model.GameType | +--com.jdwsoftware.wfh.model.NumberGame
Title: Woody's Fishing Hole
Description: Educational Fishing Game
Copyright: Copyright (C) 2003 JDW Software, LLC
Company: JDW Software, LLC
Field Summary |
Fields inherited from class com.jdwsoftware.wfh.model.GameType |
_caller, BORDER, HEIGHT, WIDTH |
Constructor Summary | |
NumberGame(javax.swing.JComponent caller)
|
Method Summary | |
java.lang.String |
getAnswer()
Get the string representation of the answer to getQuestion() |
java.awt.Image |
getAnswer(java.lang.String s)
Given an answer string, get the corresponding image to put on the fish. |
java.awt.Image |
getQuestion()
Get the question image this is to be displayed on the passed component |
java.lang.String[] |
getValidAnswers()
Get a set of all possible answers. |
void |
newQuestion()
Call new question to generate a new question and answer |
Methods inherited from class com.jdwsoftware.wfh.model.GameType |
getHeight, getWidth |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NumberGame(javax.swing.JComponent caller)
Method Detail |
public void newQuestion()
GameType
newQuestion
in class GameType
public java.awt.Image getQuestion()
GameType
getQuestion
in class GameType
public java.lang.String getAnswer()
GameType
getAnswer
in class GameType
public java.lang.String[] getValidAnswers()
GameType
getValidAnswers
in class GameType
public java.awt.Image getAnswer(java.lang.String s)
GameType
getAnswer
in class GameType
s
- Answer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |