public final class ShotImpl extends java.lang.Object implements Shot
Modifier and Type | Method and Description |
---|---|
static ShotImpl |
createShot(Point2d point)
Creates a
ShotImpl . |
boolean |
equals(java.lang.Object o) |
Point2d |
getPoint()
Gets the point of the shot.
|
int |
hashCode() |
java.lang.String |
toString() |
public static ShotImpl createShot(Point2d point)
ShotImpl
.point
- a valid point which must be within the Boundary limit
Ruleset.FIELD_BOUND
ShotImpl
.public Point2d getPoint()
Shot
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object