|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.game.Juzzle.PuzzlePartList.PuzzlePart
class for one piece
| Field Summary | |
java.awt.Rectangle |
boundsImage
image bounds |
java.awt.Rectangle |
boundsIn
inner bounds |
java.awt.Rectangle |
boundsOut
outer bounds |
PuzzlePartList.PuzzlePart |
east
reference to the neighbourhood |
static int |
EAST
for locking if two pieces pass together |
java.awt.geom.GeneralPath |
generalPath
geometricaly shape |
java.awt.Point |
locationIn
location of inner bounds |
java.awt.Point |
locationOut
location of outer bounds |
int |
lock
if locked to WEST, EAST, NORTH, SOUTH or not |
PuzzlePartList.PuzzlePart |
next
next for the group (horizontal linking) |
PuzzlePartList.PuzzlePart |
nextInGroup
next in group (vertical linking) |
PuzzlePartList.PuzzlePart |
north
reference to the neighbourhood |
static int |
NORTH
for locking if two pieces pass together |
PuzzlePartList.PuzzlePart |
prev
prev for the group (horizontal linking) |
PuzzlePartList.PuzzlePart |
prevInGroup
prev in group (vertical linking) |
PuzzlePaint |
puzzlePaint
paint for this piece |
java.awt.Rectangle |
shapeBounds
bounds of geometricaly shape |
PuzzlePartList.PuzzlePart |
south
reference to the neighbourhood |
static int |
SOUTH
for locking if two pieces pass together |
PuzzlePartList.PuzzlePart |
west
reference to the neighbourhood |
static int |
WEST
for locking if two pieces pass together |
| Constructor Summary | |
PuzzlePartList.PuzzlePart(java.awt.image.BufferedImage bimage,
int lx,
int ly,
int pix,
int piy,
int width,
int height)
simply constructor |
|
| Method Summary | |
java.lang.String |
toString()
create a description of this part for debugging |
void |
updateLocationOut()
update the outer location from inner |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int WEST
public static final int EAST
public static final int NORTH
public static final int SOUTH
public java.awt.Point locationIn
public java.awt.Point locationOut
public java.awt.Rectangle boundsIn
public java.awt.Rectangle boundsOut
public java.awt.Rectangle boundsImage
public java.awt.geom.GeneralPath generalPath
public java.awt.Rectangle shapeBounds
public PuzzlePaint puzzlePaint
public PuzzlePartList.PuzzlePart next
public PuzzlePartList.PuzzlePart prev
public PuzzlePartList.PuzzlePart nextInGroup
public PuzzlePartList.PuzzlePart prevInGroup
public PuzzlePartList.PuzzlePart north
public PuzzlePartList.PuzzlePart south
public PuzzlePartList.PuzzlePart west
public PuzzlePartList.PuzzlePart east
public int lock
| Constructor Detail |
public PuzzlePartList.PuzzlePart(java.awt.image.BufferedImage bimage,
int lx,
int ly,
int pix,
int piy,
int width,
int height)
bimage - reference to the imagelx - location x of piecely - location y of pieceplx - pixel location x of imageply - pixel location y of imagewidth - width of piece and image partheight - height of piece and image part| Method Detail |
public void updateLocationOut()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||