org.gamenet.application.mm8leveleditor.data.mm6.indoor
Class Door
java.lang.Object
org.gamenet.application.mm8leveleditor.data.mm6.indoor.Door
- public class Door
- extends Object
Method Summary |
static int |
computeDataSize(byte[] data,
int offset,
int numberOfDoors,
int variableDoorDataSize)
|
static int |
computeDataSize(int gameVersion,
List doorList)
|
private int |
getBitmapDxCount()
|
private int |
getBitmapDyCount()
|
static ComparativeTableControl.DataSource |
getConstantComparativeDataSource(List doorList)
|
static List |
getConstantOffsetList()
|
byte[] |
getDoorData()
|
int |
getDoorOffset()
|
private int |
getFacetCount()
|
int |
getRecordSize()
|
private int |
getRoomCount()
|
private int |
getTargetX1Count()
|
private int |
getTargetX2Count()
|
private int |
getTargetX3Count()
|
private int |
getVariableDoorDataSize()
|
private int |
getVertexCount()
|
int |
initialize(byte[] dataSrc,
int offset)
|
private int |
initializeList(byte[] data,
int offset,
short[] array)
|
int |
initializeVariableDoorData(byte[] variableDoorData,
int offset)
|
static int |
populateObjects(byte[] data,
int offset,
List doorList,
int numberOfDoors,
int variableDoorDataSize)
|
static int |
updateData(byte[] newData,
int offset,
List doorList)
|
private int |
updateDataFromList(byte[] variableDoorData,
int variableDoorDataOffset,
short[] array)
|
private int |
updateVariableDoorData(byte[] variableDoorData,
int variableDoorDataOffset)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOOR_RECORD_LENGTH
private static final int DOOR_RECORD_LENGTH
- See Also:
- Constant Field Values
DOOR_STATE_OPEN
private static final int DOOR_STATE_OPEN
- See Also:
- Constant Field Values
DOOR_STATE_CLOSING
private static final int DOOR_STATE_CLOSING
- See Also:
- Constant Field Values
DOOR_STATE_CLOSED
private static final int DOOR_STATE_CLOSED
- See Also:
- Constant Field Values
DOOR_STATE_OPENING
private static final int DOOR_STATE_OPENING
- See Also:
- Constant Field Values
DOOR_TRIGGER_OPEN
private static final int DOOR_TRIGGER_OPEN
- See Also:
- Constant Field Values
DOOR_TRIGGER_CLOSE
private static final int DOOR_TRIGGER_CLOSE
- See Also:
- Constant Field Values
DOOR_TRIGGER_TOGGLE
private static final int DOOR_TRIGGER_TOGGLE
- See Also:
- Constant Field Values
DOOR_ATTRIBUTE_START_CLOSED
private static final int DOOR_ATTRIBUTE_START_CLOSED
- See Also:
- Constant Field Values
DOOR_ATTRIBUTE_FORCE_MOVE
private static final int DOOR_ATTRIBUTE_FORCE_MOVE
- See Also:
- Constant Field Values
DOOR_ATTRIBUTE_NO_SOUND
private static final int DOOR_ATTRIBUTE_NO_SOUND
- See Also:
- Constant Field Values
ATTRIBUTES_OFFSET
private static final int ATTRIBUTES_OFFSET
- See Also:
- Constant Field Values
DOOR_ID_OFFSET
private static final int DOOR_ID_OFFSET
- See Also:
- Constant Field Values
TIME_SINCE_TRIGGERED_OFFSET
private static final int TIME_SINCE_TRIGGERED_OFFSET
- See Also:
- Constant Field Values
DIRECTION_X_OFFSET
private static final int DIRECTION_X_OFFSET
- See Also:
- Constant Field Values
DIRECTION_Y_OFFSET
private static final int DIRECTION_Y_OFFSET
- See Also:
- Constant Field Values
DIRECTION_Z_OFFSET
private static final int DIRECTION_Z_OFFSET
- See Also:
- Constant Field Values
DIRECTION_MAGNITUDE_OFFSET
private static final int DIRECTION_MAGNITUDE_OFFSET
- See Also:
- Constant Field Values
OPENING_VELOCITY_OFFSET
private static final int OPENING_VELOCITY_OFFSET
- See Also:
- Constant Field Values
CLOSING_VELOCITY_OFFSET
private static final int CLOSING_VELOCITY_OFFSET
- See Also:
- Constant Field Values
VERTEX_OFFSET_OFFSET
private static final int VERTEX_OFFSET_OFFSET
- See Also:
- Constant Field Values
FACET_OFFSET_OFFSET
private static final int FACET_OFFSET_OFFSET
- See Also:
- Constant Field Values
ROOM_OFFSET_OFFSET
private static final int ROOM_OFFSET_OFFSET
- See Also:
- Constant Field Values
BITMAP_DX_OFFSET_OFFSET
private static final int BITMAP_DX_OFFSET_OFFSET
- See Also:
- Constant Field Values
BITMAP_DY_OFFSET_OFFSET
private static final int BITMAP_DY_OFFSET_OFFSET
- See Also:
- Constant Field Values
VERTEX_X_OFFSET_OFFSET
private static final int VERTEX_X_OFFSET_OFFSET
- See Also:
- Constant Field Values
VERTEX_Y_OFFSET_OFFSET
private static final int VERTEX_Y_OFFSET_OFFSET
- See Also:
- Constant Field Values
VERTEX_Z_OFFSET_OFFSET
private static final int VERTEX_Z_OFFSET_OFFSET
- See Also:
- Constant Field Values
NUMBER_OF_TARGETS_1_OFFSET
private static final int NUMBER_OF_TARGETS_1_OFFSET
- See Also:
- Constant Field Values
NUMBER_OF_TARGETS_2_OFFSET
private static final int NUMBER_OF_TARGETS_2_OFFSET
- See Also:
- Constant Field Values
NUMBER_OF_TARGETS_3_OFFSET
private static final int NUMBER_OF_TARGETS_3_OFFSET
- See Also:
- Constant Field Values
NUMBER_OF_X_OFFSET
private static final int NUMBER_OF_X_OFFSET
- See Also:
- Constant Field Values
DOOR_STATE_OFFSET
private static final int DOOR_STATE_OFFSET
- See Also:
- Constant Field Values
PADDING_OFFSET
private static final int PADDING_OFFSET
- See Also:
- Constant Field Values
doorOffset
private int doorOffset
doorData
private byte[] doorData
vertexArray
private short[] vertexArray
facetArray
private short[] facetArray
roomArray
private short[] roomArray
bitmapDxArray
private short[] bitmapDxArray
bitmapDyArray
private short[] bitmapDyArray
targetX1Array
private short[] targetX1Array
targetX2Array
private short[] targetX2Array
targetX3Array
private short[] targetX3Array
Door
public Door()
Door
public Door(String value)
initialize
public int initialize(byte[] dataSrc,
int offset)
initializeList
private int initializeList(byte[] data,
int offset,
short[] array)
initializeVariableDoorData
public int initializeVariableDoorData(byte[] variableDoorData,
int offset)
getVertexCount
private int getVertexCount()
getFacetCount
private int getFacetCount()
getRoomCount
private int getRoomCount()
getBitmapDxCount
private int getBitmapDxCount()
getBitmapDyCount
private int getBitmapDyCount()
getTargetX1Count
private int getTargetX1Count()
getTargetX2Count
private int getTargetX2Count()
getTargetX3Count
private int getTargetX3Count()
populateObjects
public static int populateObjects(byte[] data,
int offset,
List doorList,
int numberOfDoors,
int variableDoorDataSize)
updateDataFromList
private int updateDataFromList(byte[] variableDoorData,
int variableDoorDataOffset,
short[] array)
updateVariableDoorData
private int updateVariableDoorData(byte[] variableDoorData,
int variableDoorDataOffset)
updateData
public static int updateData(byte[] newData,
int offset,
List doorList)
computeDataSize
public static int computeDataSize(byte[] data,
int offset,
int numberOfDoors,
int variableDoorDataSize)
getVariableDoorDataSize
private int getVariableDoorDataSize()
computeDataSize
public static int computeDataSize(int gameVersion,
List doorList)
getDoorData
public byte[] getDoorData()
getDoorOffset
public int getDoorOffset()
getRecordSize
public int getRecordSize()
getConstantOffsetList
public static List getConstantOffsetList()
getConstantComparativeDataSource
public static ComparativeTableControl.DataSource getConstantComparativeDataSource(List doorList)