dartboard::Wind Class Reference

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

List of all members.

Classes

class  Arrow

Public Member Functions

 Wind ()
 Wind (double direction, double speed)
double getDirection ()
double getSpeed ()
void setDirection (double direction)
void setSpeed (double speed)
void setVelocity (double direction, double speed)
void setError (boolean err)

Public Attributes

double[] WIND_LIMITS = {12, 18}
Color[] WIND_COLORS = {Color.green, Color.yellow, Color.red}

Protected Member Functions

void drawDart (Graphics g)

Private Attributes

double speed
Arrow arrow

Static Private Attributes

static int[] xdefault = {-3, 3, 3, 8, 0, -8, -3}
static int[] ydefault = {-10, -10, 0, 0, 10, 0, 0}

Detailed Description

Insert the type's description here. Creation date: (11/7/00 8:45:12 PM)

Author:
:

Constructor & Destructor Documentation

dartboard::Wind::Wind (  )  [inline]

Wind constructor comment.

Parameters:
x int
y int
dartboard::Wind::Wind ( double  direction,
double  speed 
) [inline]

Wind constructor comment.

Parameters:
x int
y int

References arrow, and dartboard::Dart::azimuth.


Member Function Documentation

void dartboard::Wind::drawDart ( Graphics  g  )  [inline, protected]
double dartboard::Wind::getDirection (  )  [inline]
double dartboard::Wind::getSpeed (  )  [inline]

References speed.

void dartboard::Wind::setDirection ( double  direction  )  [inline]
void dartboard::Wind::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::Wind::setSpeed ( double  speed  )  [inline]

Referenced by setVelocity().

void dartboard::Wind::setVelocity ( double  direction,
double  speed 
) [inline]

References setDirection(), and setSpeed().


Member Data Documentation

Referenced by drawDart(), and Wind().

double dartboard::Wind::speed [private]

Referenced by getSpeed().

Color [] dartboard::Wind::WIND_COLORS = {Color.green, Color.yellow, Color.red}

Referenced by drawDart().

double [] dartboard::Wind::WIND_LIMITS = {12, 18}

Referenced by drawDart().

int [] dartboard::Wind::xdefault = {-3, 3, 3, 8, 0, -8, -3} [static, private]
int [] dartboard::Wind::ydefault = {-10, -10, 0, 0, 10, 0, 0} [static, private]

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

Generated by  doxygen 1.6.2