org.gamenet.application.mm8leveleditor.data.mm6.outdoor
Class IntVertex

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

public class IntVertex
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 OUTDOOR_VERTEX_RECORD_SIZE
           
private  int x
           
private  int y
           
private  int z
           
 
Constructor Summary
IntVertex(int x, int y, int z)
           
IntVertex(int x, int y, int 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, int vertexCount)
           
 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

OUTDOOR_VERTEX_RECORD_SIZE

private static final int OUTDOOR_VERTEX_RECORD_SIZE
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 int x

y

private int y

z

private int z

offset

private long offset
Constructor Detail

IntVertex

public IntVertex(int x,
                 int y,
                 int z,
                 long offset)

IntVertex

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

populateObjects

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

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()