Index
All Classes and Interfaces|All Packages
D
- Dart - Class in project2
-
Simulate a dart that can be thrown at a standard dartboard with 20 wedges and 3 types of rings
- Dart() - Constructor for class project2.Dart
-
Default constructor
- Dart(int, int) - Constructor for class project2.Dart
-
Parameterized constructor - to be used only for testing
G
- getRing() - Method in class project2.Dart
-
Return which of the 3 rings the dart landed in
- getScore() - Method in class project2.Dart
-
Return the score of the thrown dart
- getWedge() - Method in class project2.Dart
-
Return which of the 20 wedges the dart landed in
P
- project2 - package project2
T
- throwDart() - Method in class project2.Dart
-
Throw a dart
- toString() - Method in class project2.Dart
-
Return a reference to a String representation of the dart's data
All Classes and Interfaces|All Packages