Constructor and Description |
---|
PunchCommand(double x,
double y)
PunchCommand, we are in screen cartesian coordinates
|
Modifier and Type | Method and Description |
---|---|
void |
accept(int index,
CommandVisitor visitor) |
boolean |
equals(java.lang.Object obj) |
double |
getX()
get X
|
double |
getY()
get Y
|
int |
hashCode() |
java.lang.String |
toString() |
public PunchCommand(double x, double y)
x
- y
- public double getX()
XYCommand
public double getY()
XYCommand
public void accept(int index, CommandVisitor visitor) throws java.lang.Exception
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object