|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Shape
A Shape is a 2-dimensional bit vector defining the unit squares occupied by a piece or a box.
| Constructor Summary | |
Shape(NumberSource nums)
Read a Shape specification from a NumberSource. |
|
| Method Summary | |
int |
height()
What is this shape's height? |
boolean |
occupies(int x,
int y)
Does this shape occupy square x, y? |
void |
print()
|
int |
width()
What is this shape's width? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Shape(NumberSource nums)
throws java.io.IOException
| Method Detail |
public int width()
public int height()
public boolean occupies(int x,
int y)
public void print()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||