public class DropBoardUtil extends Object implements 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 and Description |
|---|
DropBoardUtil() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.Copyright © 2015. All rights reserved.