Interface Hitable
public interface Hitable
Defines the methods that any hitable entity must have.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hit()
Defines the signature of the method that manages the hit action of any hitable entity.
-
Method Details
-
hit
boolean hit()Defines the signature of the method that manages the hit action of any hitable entity.- Returns:
true
if the entity has hit any other entity. Otherwise,false
.
-