|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSquare
Wall
public class Wall
| Field Summary | |
|---|---|
static int |
X_DIRECTION
|
static int |
Y_DIRECTION
|
| Constructor Summary | |
|---|---|
Wall(int x,
int y,
int direction)
Construct a wall that is north or west of a robot at a given location |
|
| Method Summary | |
|---|---|
void |
draw(java.awt.Graphics2D g2)
Draws this beeper in 2D. |
int |
getDirection()
Gets the direction of this wall. |
double |
getX()
Gets the x location of the center of this wall. |
double |
getY()
Gets the y location of the center of this wall. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int X_DIRECTION
public static final int Y_DIRECTION
| Constructor Detail |
|---|
public Wall(int x,
int y,
int direction)
x - the x location of a robot adjacent to this wally - the y location of a robot adjacent to this walldirection - X_DIRECTION or Y_DIRECTION| Method Detail |
|---|
public double getX()
public double getY()
public int getDirection()
public void draw(java.awt.Graphics2D g2)
g2 - the graphics context
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||