|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.apps.MapBrowser.PackedSheetCoord
public class PackedSheetCoord
Not an object actually, but a way to represent sheet coordinates as longs. Each must fit in a short.
| Field Summary | |
|---|---|
static long |
bitblankS
|
static long |
bitblankX
|
static long |
bitblankY
|
static long |
bitblankZ
|
static long |
bitmaskS
|
static long |
bitmaskX
|
static long |
bitmaskY
|
static long |
bitmaskZ
|
| Constructor Summary | |
|---|---|
PackedSheetCoord()
|
|
| Method Summary | |
|---|---|
static long |
createCoord(int scale,
int x,
int y)
Creates a packed SheetCoord from the given scale, x, y. |
static long |
createCoord(int scale,
int x,
int y,
int z)
Creates a packed SheetCoord from the given scale, x, y, and z. |
static int |
extractScale(long packedCoord)
Returns the scale coord. |
static int |
extractX(long packedCoord)
Returns the x coord. |
static int |
extractY(long packedCoord)
Returns the y coord. |
static int |
extractZ(long packedCoord)
Returns the z coord. |
static java.lang.String |
getPath(long packedCoord)
Converts a packed tile coord to a path. |
static void |
main(java.lang.String[] argv)
|
static long |
setScale(long packedCoord,
int newScale)
Sets the scale coord. |
static long |
setX(long packedCoord,
int newX)
Sets the x coord. |
static long |
setY(long packedCoord,
int newY)
Sets the y coord. |
static long |
setZ(long packedCoord,
int newZ)
Sets the z coord. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long bitmaskS
public static final long bitmaskX
public static final long bitmaskY
public static final long bitmaskZ
public static final long bitblankS
public static final long bitblankX
public static final long bitblankY
public static final long bitblankZ
| Constructor Detail |
|---|
public PackedSheetCoord()
| Method Detail |
|---|
public static long createCoord(int scale,
int x,
int y,
int z)
public static long createCoord(int scale,
int x,
int y)
public static int extractScale(long packedCoord)
public static int extractX(long packedCoord)
public static int extractY(long packedCoord)
public static int extractZ(long packedCoord)
public static long setScale(long packedCoord,
int newScale)
public static long setX(long packedCoord,
int newX)
public static long setY(long packedCoord,
int newY)
public static long setZ(long packedCoord,
int newZ)
public static java.lang.String getPath(long packedCoord)
public static void main(java.lang.String[] argv)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||