dartboard::Moon Class Reference

Inheritance diagram for dartboard::Moon:
Inheritance graph
[legend]
Collaboration diagram for dartboard::Moon:
Collaboration graph
[legend]

List of all members.

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]

Detailed Description

Insert the type's description here. Creation date: (11/7/00 9:03:30 PM)

Author:
:

Constructor & Destructor Documentation

dartboard::Moon::Moon (  )  [inline]

Moon constructor comment.

Parameters:
x int
y int
dartboard::Moon::Moon ( short  phase  )  [inline]

Moon constructor comment.

Parameters:
x int
y int

References icons.


Member Function Documentation

void dartboard::Moon::drawDart ( Graphics  g  )  [inline, protected]
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

Parameters:
error 

Implements dartboard::Dart.

void dartboard::Moon::setPhase ( short  phase  )  [inline]

Member Data Documentation

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().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2