org.gamenet.application.mm8leveleditor.data.mm6
Class SpawnPoint
java.lang.Object
org.gamenet.application.mm8leveleditor.data.mm6.SpawnPoint
- All Implemented Interfaces:
- Vertex3DValueHolder
- public class SpawnPoint
- extends Object
- implements Vertex3DValueHolder
Constructor Summary |
SpawnPoint(int gameVersion)
|
SpawnPoint(int gameVersion,
int monsterClass,
int x,
int y,
int z,
int radius)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SpawnPoint
public SpawnPoint(int gameVersion)
SpawnPoint
public SpawnPoint(int gameVersion,
int monsterClass,
int x,
int y,
int z,
int radius)
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)