|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.puzzle.drop.util.DropBoardUtil
public class DropBoardUtil
| Field Summary |
|---|
| Fields inherited from interface com.threerings.util.DirectionCodes |
|---|
CARDINAL_DIRECTIONS, CCW, CW, DIRECTION_COUNT, DOWN, EAST, EASTNORTHEAST, EASTSOUTHEAST, FINE_DIRECTION_COUNT, HORIZONTAL, LEFT, NONE, NORTH, NORTHEAST, NORTHNORTHEAST, NORTHNORTHWEST, NORTHWEST, RIGHT, SOUTH, SOUTHEAST, SOUTHSOUTHEAST, SOUTHSOUTHWEST, SOUTHWEST, UP, VERTICAL, WEST, WESTNORTHWEST, WESTSOUTHWEST |
| Constructor Summary | |
|---|---|
DropBoardUtil()
|
|
| Method Summary | |
|---|---|
static int |
getRotatedOrientation(int orient,
int dir)
Returns the orientation resulting from rotating the block in the given direction. |
static int |
getRotatedOrientation(int orient,
int dir,
int count)
Returns the orientation resulting from rotating the block in the given direction the specified number of times. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DropBoardUtil()
| Method Detail |
|---|
public static int getRotatedOrientation(int orient,
int dir,
int count)
orient - the current orientation.dir - the direction to rotate in; one of CW or CCW.count - the number of rotations to perform.
public static int getRotatedOrientation(int orient,
int dir)
orient - the current orientation.dir - the direction to rotate in; one of CW or CCW.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||