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