| 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()
XYCommandpublic double getY()
XYCommandpublic void accept(int index,
CommandVisitor visitor)
throws java.lang.Exception
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object