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} |
Insert the type's description here. Creation date: (11/7/00 8:45:12 PM)
dartboard::Wind::Wind | ( | ) | [inline] |
Wind constructor comment.
x | int | |
y | int |
dartboard::Wind::Wind | ( | double | direction, | |
double | speed | |||
) | [inline] |
void dartboard::Wind::drawDart | ( | Graphics | g | ) | [inline, protected] |
Reimplemented from dartboard::Dart.
References arrow, dartboard::Dart::azimuth, dartboard::Wind::Arrow::rotate(), WIND_COLORS, and WIND_LIMITS.
double dartboard::Wind::getDirection | ( | ) | [inline] |
References dartboard::Dart::azimuth.
double dartboard::Wind::getSpeed | ( | ) | [inline] |
References speed.
void dartboard::Wind::setDirection | ( | double | direction | ) | [inline] |
References dartboard::Dart::azimuth, and dartboard::Dart::setPosition().
Referenced by setVelocity().
void dartboard::Wind::setError | ( | boolean | error | ) | [inline, virtual] |
Called in case of error.
Each derived class will take the opportune action
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().
Arrow dartboard::Wind::arrow [private] |
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] |
Referenced by dartboard::Wind::Arrow::Arrow(), and dartboard::Wind::Arrow::rotate().
int [] dartboard::Wind::ydefault = {-10, -10, 0, 0, 10, 0, 0} [static, private] |
Referenced by dartboard::Wind::Arrow::Arrow(), and dartboard::Wind::Arrow::rotate().