Class Dynamite
java.lang.Object
javadoc_tags.Dynamite
Provides ways to explode dynamite to blow up roadrunners.
Try using the ACMESmartphone.zapRoadRunner(int) before
resorting to blowDynamiteLoudBang(int). However, if you do have a lot of
roadrunners, the zapRoadRunner method may not be
efficient enough. You'll probably just want to resort to
blowDynamiteLoudBang() to annihilate them all at once.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidblowDynamiteLoudBang(int fuseLength) Blows dynamite with a decibel level approximating that of a fog horn.voidblowDynamiteSilentBang(int fuseLength) Blows dynamite with almost no sound at all (equivalent to a silencer on a gun).
-
Constructor Details
-
Dynamite
public Dynamite()
-
-
Method Details
-
blowDynamiteLoudBang
public void blowDynamiteLoudBang(int fuseLength) Blows dynamite with a decibel level approximating that of a fog horn.- Parameters:
fuseLength- the length of the fuse on the stick of dynamite- See Also:
-
blowDynamiteSilentBang
public void blowDynamiteSilentBang(int fuseLength) Blows dynamite with almost no sound at all (equivalent to a silencer on a gun).- Parameters:
fuseLength- the length of the fuse, which determines safety (silent bangs are just as deadly as loud bangs)- See Also:
-