Class ACMESmartphone
java.lang.Object
javadoc_tags.ACMESmartphone
Works like a regular smartphone but also tracks roadrunners.
The ACME Smartphone can perform similar functions as other smartphones, such as making phone calls, sending text messages, and browsing the web. However, the ACME Smartphone also enables GPS tracking on roadrunners. You can monitor the location of all roadrunners within a 20 mile radius using the RoadRunner Tracker app.
Note that the RoadRunner Tracker app requires you to be connected to wifi. It will not work on cellular data.
- Since:
- 1.3
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionACMESmartphone(double model, String license) Creates and initializes a new ACME_Smartphone with the appropriate model and license number. -
Method Summary
Modifier and TypeMethodDescriptionfindRoadRunner(String city, String state) Gets the geocoordinates of roadrunners based on your city and state.voidzapRoadRunner(int voltage) Zaps the roadrunner with the amount of volts you specify.
-
Field Details
-
LongLat
The coordinates where the nearest roadrunner is located.
-
-
Constructor Details
-
ACMESmartphone
Creates and initializes a new ACME_Smartphone with the appropriate model and license number. Note that if your license is invalid or if the model is deprecated, the zapping controls on the phone will backfire.- Parameters:
model- The model of the ACME Smartphone you are initializing.license- The license associated with your ACME Smartphone.
-
-
Method Details
-
findRoadRunner
Gets the geocoordinates of roadrunners based on your city and state.- Parameters:
city- the city you want to browse for roadrunnersstate- the state you want to browse for roadrunners- Returns:
- the coordinates of the roadrunner in your area
- Throws:
IOException- if you put integers instead of strings
-
zapRoadRunner
Zaps the roadrunner with the amount of volts you specify.Do not exceed more than 30 volts or the zap function will backfire. For another way to kill a roadrunner, see the
Dynamite.blowDynamiteLoudBang(int)method.- Parameters:
voltage- the number of volts you want to send into the roadrunner's body- Throws:
IOException- if you don't enter an integer data type amount for the voltage- See Also:
-