Public Member Functions | |
Moon () | |
Moon (short phase) | |
short | getPhase (short phase) |
void | setPhase (short phase) |
void | setError (boolean err) |
Static Public Attributes | |
static short | NO_MOON = -1 |
static short | EMPTY_MOON = 0 |
static short | FIRST_QUARTER = 1 |
static short | HALF_MOON = 2 |
static short | THIRD_QUARTER = 3 |
static short | FULL_MOON = 4 |
Protected Member Functions | |
void | drawDart (Graphics g) |
Private Attributes | |
short | phase = FULL_MOON |
ImageIcon[] | icons = new ImageIcon[5] |
Insert the type's description here. Creation date: (11/7/00 9:03:30 PM)
dartboard::Moon::Moon | ( | ) | [inline] |
Moon constructor comment.
x | int | |
y | int |
dartboard::Moon::Moon | ( | short | phase | ) | [inline] |
void dartboard::Moon::drawDart | ( | Graphics | g | ) | [inline, protected] |
Reimplemented from dartboard::Dart.
References dartboard::Dart::dartboard, EMPTY_MOON, FIRST_QUARTER, FULL_MOON, HALF_MOON, icons, NO_MOON, phase, and THIRD_QUARTER.
short dartboard::Moon::getPhase | ( | short | phase | ) | [inline] |
void dartboard::Moon::setError | ( | boolean | error | ) | [inline, virtual] |
Called in case of error.
Each derived class will take the opportune action
error |
Implements dartboard::Dart.
void dartboard::Moon::setPhase | ( | short | phase | ) | [inline] |
short dartboard::Moon::EMPTY_MOON = 0 [static] |
Referenced by drawDart().
short dartboard::Moon::FIRST_QUARTER = 1 [static] |
Referenced by drawDart().
short dartboard::Moon::FULL_MOON = 4 [static] |
Referenced by drawDart().
short dartboard::Moon::HALF_MOON = 2 [static] |
Referenced by drawDart().
ImageIcon [] dartboard::Moon::icons = new ImageIcon[5] [private] |
Referenced by drawDart(), and Moon().
short dartboard::Moon::NO_MOON = -1 [static] |
Referenced by drawDart().
short dartboard::Moon::phase = FULL_MOON [private] |
Referenced by drawDart().
short dartboard::Moon::THIRD_QUARTER = 3 [static] |
Referenced by drawDart().