org.gamenet.application.mm8leveleditor.data.mm6.indoor
Class ShortVertex

java.lang.Object
  extended byorg.gamenet.application.mm8leveleditor.data.mm6.indoor.ShortVertex
All Implemented Interfaces:
Vertex, Vertex3DValueHolder

public class ShortVertex
extends Object
implements Vertex


Field Summary
private static int EAST_WEST_OFFSET
           
private static int HEIGHT_OFFSET
           
private static int NORTH_SOUTH_OFFSET
           
private  long offset
           
private static int VERTEX_RECORD_LENGTH
           
private  short x
           
private  short y
           
private  short z
           
 
Constructor Summary
ShortVertex(int x, int y, int z)
           
ShortVertex(short x, short y, short z, long offset)
           
 
Method Summary
 long getOffset()
           
static int getRecordSize()
           
 int getX()
           
 int getY()
           
 int getZ()
           
static int populateObjects(byte[] dataSrc, int offset, List vertexList)
           
 void setX(int x)
           
 void setY(int y)
           
 void setZ(int z)
           
static int updateData(byte[] newData, int offset, List vertexList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERTEX_RECORD_LENGTH

private static final int VERTEX_RECORD_LENGTH
See Also:
Constant Field Values

EAST_WEST_OFFSET

private static final int EAST_WEST_OFFSET
See Also:
Constant Field Values

NORTH_SOUTH_OFFSET

private static final int NORTH_SOUTH_OFFSET
See Also:
Constant Field Values

HEIGHT_OFFSET

private static final int HEIGHT_OFFSET
See Also:
Constant Field Values

x

private short x

y

private short y

z

private short z

offset

private long offset
Constructor Detail

ShortVertex

public ShortVertex(short x,
                   short y,
                   short z,
                   long offset)

ShortVertex

public ShortVertex(int x,
                   int y,
                   int z)
Method Detail

populateObjects

public static int populateObjects(byte[] dataSrc,
                                  int offset,
                                  List vertexList)

updateData

public static int updateData(byte[] newData,
                             int offset,
                             List vertexList)

getX

public int getX()
Specified by:
getX in interface Vertex

setX

public void setX(int x)
Specified by:
setX in interface Vertex

getY

public int getY()
Specified by:
getY in interface Vertex

setY

public void setY(int y)
Specified by:
setY in interface Vertex

getZ

public int getZ()
Specified by:
getZ in interface Vertex

setZ

public void setZ(int z)
Specified by:
setZ in interface Vertex

getOffset

public long getOffset()
Specified by:
getOffset in interface Vertex

getRecordSize

public static int getRecordSize()