Serialized Form
|
Class GamePanel extends javax.swing.JPanel implements Serializable |
owner
PlusNumber owner
- PlusNumber object that creates and has this game panel.
c
java.awt.Color c
- Background colour of this game panel.
panelNumber
int panelNumber
- Unique number of this game panel.
numDisplayed
int numDisplayed
- Number displayed on this game panel.
state
int state
- indicate if a game panel is either not selected, already selected,
or alrady played.
pnInst
InstructionDialog.InstructionPanel[] pnInst
- Panels displayed on the right of this dialog. Each of them contain text
and/or an image explaining the Plus Number game. They will be displayed
according to a selected heading from the left of the dialog.
ic
javax.swing.ImageIcon[] ic
- Image icons displayed on pnInst along with labels.
panelNumber
int panelNumber
- Unique number of this panel.
pnContents
javax.swing.JPanel pnContents
- Panel that holds contents of instructions.
lbContents
javax.swing.JLabel[] lbContents
- Array of labels that hold each paragraph of instructions.
text
java.lang.String[] text
- Array of String that is text dislpayed on panels.
|
Class PlusNumber extends javax.swing.JApplet implements Serializable |
cnt
java.awt.Container cnt
- Container of both splash screen and game window.
btnPass
javax.swing.JButton btnPass
- "PASS" button on the game window.
rb
javax.swing.JRadioButton[] rb
- "BGM ON/OFF" radio buttons on the splash screen.
pnCentre
javax.swing.JPanel pnCentre
- Panel placed on the middle of the container. It holds pnLeft and pnRight.
pnLeft
javax.swing.JPanel pnLeft
- Panel placed on the left of the pnCentre. On the splash screen, it holds
a game title image and GIF animation. On the game window, it holds a question
area, sum area, and time remaining area.
pnRight
javax.swing.JPanel pnRight
- Panel placed on the right of the pnCentre. On the splash screen, it holds
the "START" button, "How to Play" button, and "BGM ON/OFF" option buttons.
On the game window, it holds game squares.
windowPanel
WindowPanel[] windowPanel
- Array of WindowPanel objects, which are left-side panels on the game window.
gamePanel
GamePanel[] gamePanel
- Array of GamePanel objects, which are right-side panels on the game window.
Numbers from 1 to 9 are displayed on these panels.
mn
javax.swing.JMenu[] mn
- Array of menus on the game window.
mItem
javax.swing.JMenuItem[] mItem
- Array of menu items on the game window.
rbMenu
javax.swing.JRadioButtonMenuItem[] rbMenu
- Array of radio buttons used within menus.
bg
javax.swing.ButtonGroup[] bg
- Array of button groups that are used to group three sets of radio buttons.
colourOne
java.awt.Color colourOne
- Colour object representing a background colour of a half of game squares (GamePanels).
colourTwo
java.awt.Color colourTwo
- Colour object representing a background colour of a half of game squares (GamePanels).
questionNumber
int questionNumber
- Question number displayed on the "Question" area of the game window.
sum
int sum
- The sum of selected numbers, displayed on the "Sum" area of the game window.
timeRemaining
int timeRemaining
- Time remaining for a game in seconds, displayed on the "Time Remaining" area
of the game window.
gameOver
boolean gameOver
- Indicates if a game is already over or not.
isBgmOn
boolean isBgmOn
- Indicates if "BGM ON" option is selected or not.
isEffectOn
boolean isEffectOn
- Indicates if "Effect ON" option is selected or not.
gamePanelTimer
java.util.Timer gamePanelTimer
- Timer onject that controls delay of actions on the game window.
countdownTimer
java.util.Timer countdownTimer
- Timer onject that controls countdown timer on the game window.
instDialog
InstructionDialog instDialog
- Object of "How to Play" dialog.
aboutDialog
AboutDialog aboutDialog
- Object of "About Plus Number" dialog.
mal
MyActionListener mal
- Object of MyActionListener that listens to actions performed on the splash
screen or game window, and switches appropriate operations according to
the source of the actions.
ac
java.applet.AudioClip[] ac
- Array of AudioClip objects that are made from sound files.