org.gamenet.application.mm8leveleditor.data.mm6
Class SpawnPoint

java.lang.Object
  extended byorg.gamenet.application.mm8leveleditor.data.mm6.SpawnPoint
All Implemented Interfaces:
Vertex3DValueHolder

public class SpawnPoint
extends Object
implements Vertex3DValueHolder


Nested Class Summary
static class SpawnPoint.MonsterClassLabelValue
           
 
Field Summary
private static int ATTRIBUTE_OFFSET
           
private  int gameVersion
           
private static int GROUP_OFFSET
           
private static int INDEX_OFFSET
           
private static int MONSTER_RECORD_LENGTH_MM6
           
private static int MONSTER_RECORD_LENGTH_MM7
           
private static SpawnPoint.MonsterClassLabelValue[] monsterClassArray
           
private  byte[] monsterData
           
private  long monsterOffset
           
private static int RADIUS_OFFSET
           
private static int TYPE_ID_OFFSET
           
private static int X_OFFSET
           
private static int Y_OFFSET
           
private static int Z_OFFSET
           
 
Constructor Summary
SpawnPoint(int gameVersion)
           
SpawnPoint(int gameVersion, int monsterClass, int x, int y, int z, int radius)
           
 
Method Summary
static ComparativeTableControl.DataSource getComparativeDataSource(List monsterList)
           
 int getMonsterClass()
           
static int getMonsterClassIndexForValue(int value)
           
static String getMonsterClassLabelForObject(Object object)
           
static SpawnPoint.MonsterClassLabelValue[] getMonsterClassValues()
           
 byte[] getMonsterData()
           
 long getMonsterOffset()
           
static List getOffsetList(int gameVersion)
           
 int getRadius()
           
 int getRecordSize()
           
static int getRecordSize(int gameVersion)
           
 int getX()
           
 int getY()
           
 int getZ()
           
 int initialize(byte[] dataSrc, int offset)
           
static int populateObjects(int gameVersion, byte[] data, int offset, List monsterList)
           
 void setMonsterClass(int value)
           
 void setMonsterClassForItem(Object object)
           
 void setRadius(int value)
           
 void setX(int value)
           
 void setY(int value)
           
 void setZ(int value)
           
static int updateData(byte[] newData, int offset, List monsterList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X_OFFSET

private static final int X_OFFSET
See Also:
Constant Field Values

Y_OFFSET

private static final int Y_OFFSET
See Also:
Constant Field Values

Z_OFFSET

private static final int Z_OFFSET
See Also:
Constant Field Values

RADIUS_OFFSET

private static final int RADIUS_OFFSET
See Also:
Constant Field Values

TYPE_ID_OFFSET

private static final int TYPE_ID_OFFSET
See Also:
Constant Field Values

INDEX_OFFSET

private static final int INDEX_OFFSET
See Also:
Constant Field Values

ATTRIBUTE_OFFSET

private static final int ATTRIBUTE_OFFSET
See Also:
Constant Field Values

GROUP_OFFSET

private static final int GROUP_OFFSET
See Also:
Constant Field Values

MONSTER_RECORD_LENGTH_MM6

private static final int MONSTER_RECORD_LENGTH_MM6
See Also:
Constant Field Values

MONSTER_RECORD_LENGTH_MM7

private static final int MONSTER_RECORD_LENGTH_MM7
See Also:
Constant Field Values

monsterOffset

private long monsterOffset

gameVersion

private int gameVersion

monsterData

private byte[] monsterData

monsterClassArray

private static SpawnPoint.MonsterClassLabelValue[] monsterClassArray
Constructor Detail

SpawnPoint

public SpawnPoint(int gameVersion)

SpawnPoint

public SpawnPoint(int gameVersion,
                  int monsterClass,
                  int x,
                  int y,
                  int z,
                  int radius)
Method Detail

initialize

public int initialize(byte[] dataSrc,
                      int offset)

populateObjects

public static int populateObjects(int gameVersion,
                                  byte[] data,
                                  int offset,
                                  List monsterList)

updateData

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

getX

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

setX

public void setX(int value)
Specified by:
setX in interface Vertex3DValueHolder

getY

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

setY

public void setY(int value)
Specified by:
setY in interface Vertex3DValueHolder

getZ

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

setZ

public void setZ(int value)
Specified by:
setZ in interface Vertex3DValueHolder

getRadius

public int getRadius()

setRadius

public void setRadius(int value)

getMonsterClass

public int getMonsterClass()

setMonsterClass

public void setMonsterClass(int value)

getMonsterData

public byte[] getMonsterData()

getMonsterOffset

public long getMonsterOffset()

getRecordSize

public static int getRecordSize(int gameVersion)

getRecordSize

public int getRecordSize()

getOffsetList

public static List getOffsetList(int gameVersion)

getComparativeDataSource

public static ComparativeTableControl.DataSource getComparativeDataSource(List monsterList)

getMonsterClassValues

public static SpawnPoint.MonsterClassLabelValue[] getMonsterClassValues()

getMonsterClassIndexForValue

public static int getMonsterClassIndexForValue(int value)

getMonsterClassLabelForObject

public static String getMonsterClassLabelForObject(Object object)

setMonsterClassForItem

public void setMonsterClassForItem(Object object)