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

java.lang.Object
  extended byorg.gamenet.application.mm8leveleditor.data.mm6.LloydsBeacon

public class LloydsBeacon
extends Object


Field Summary
private static int LLOYDS_BEACON_RECORD_SIZE
           
private static int LLOYDS_BEACON_SPELL_DESTINATION_OFFSET
           
private static int LLOYDS_BEACON_SPELL_END_TIMESTAMP_OFFSET
           
private static int LLOYDS_BEACON_SPELL_FACING_OFFSET
           
private static int LLOYDS_BEACON_SPELL_TILT_OFFSET
           
private static int LLOYDS_BEACON_SPELL_UNK1_OFFSET
           
private static int LLOYDS_BEACON_SPELL_X_OFFSET
           
private static int LLOYDS_BEACON_SPELL_Y_OFFSET
           
private static int LLOYDS_BEACON_SPELL_Z_OFFSET
           
private  byte[] lloydsBeaconData
           
private  int lloydsBeaconOffset
           
 
Constructor Summary
LloydsBeacon()
           
LloydsBeacon(String fileName)
           
 
Method Summary
static boolean checkDataIntegrity(byte[] data, int offset, int expectedNewOffset)
           
static ComparativeTableControl.DataSource getComparativeDataSource(List lloydsBeaconList)
           
 short getDestination()
           
 long getEndDateTime()
           
 short getFacing()
           
 byte[] getLloydsBeaconData()
           
 int getLloydsBeaconOffset()
           
static List getOffsetList()
           
static int getRecordSize()
           
 short getTilt()
           
 int getX()
           
 int getY()
           
 int getZ()
           
 int initialize(byte[] dataSrc, int offset)
           
static int populateObjects(byte[] data, int offset, List lloydsBeaconList, int lloydsBeaconCount)
           
 void setDestination(short value)
           
 void setEndDateTime(long value)
           
 void setFacing(short value)
           
 void setTilt(short value)
           
 void setX(int value)
           
 void setY(int value)
           
 void setZ(int value)
           
static int updateData(byte[] newData, int offset, List lloydsBeaconList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LLOYDS_BEACON_RECORD_SIZE

private static final int LLOYDS_BEACON_RECORD_SIZE
See Also:
Constant Field Values

LLOYDS_BEACON_SPELL_END_TIMESTAMP_OFFSET

private static int LLOYDS_BEACON_SPELL_END_TIMESTAMP_OFFSET

LLOYDS_BEACON_SPELL_X_OFFSET

private static int LLOYDS_BEACON_SPELL_X_OFFSET

LLOYDS_BEACON_SPELL_Y_OFFSET

private static int LLOYDS_BEACON_SPELL_Y_OFFSET

LLOYDS_BEACON_SPELL_Z_OFFSET

private static int LLOYDS_BEACON_SPELL_Z_OFFSET

LLOYDS_BEACON_SPELL_FACING_OFFSET

private static int LLOYDS_BEACON_SPELL_FACING_OFFSET

LLOYDS_BEACON_SPELL_TILT_OFFSET

private static int LLOYDS_BEACON_SPELL_TILT_OFFSET

LLOYDS_BEACON_SPELL_UNK1_OFFSET

private static int LLOYDS_BEACON_SPELL_UNK1_OFFSET

LLOYDS_BEACON_SPELL_DESTINATION_OFFSET

private static int LLOYDS_BEACON_SPELL_DESTINATION_OFFSET

lloydsBeaconOffset

private int lloydsBeaconOffset

lloydsBeaconData

private byte[] lloydsBeaconData
Constructor Detail

LloydsBeacon

public LloydsBeacon()

LloydsBeacon

public LloydsBeacon(String fileName)
Method Detail

getEndDateTime

public long getEndDateTime()

setEndDateTime

public void setEndDateTime(long value)

getX

public int getX()

setX

public void setX(int value)

getY

public int getY()

setY

public void setY(int value)

getZ

public int getZ()

setZ

public void setZ(int value)

getFacing

public short getFacing()

setFacing

public void setFacing(short value)

getTilt

public short getTilt()

setTilt

public void setTilt(short value)

getDestination

public short getDestination()

setDestination

public void setDestination(short value)

initialize

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

checkDataIntegrity

public static boolean checkDataIntegrity(byte[] data,
                                         int offset,
                                         int expectedNewOffset)

populateObjects

public static int populateObjects(byte[] data,
                                  int offset,
                                  List lloydsBeaconList,
                                  int lloydsBeaconCount)

updateData

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

getLloydsBeaconData

public byte[] getLloydsBeaconData()

getLloydsBeaconOffset

public int getLloydsBeaconOffset()

getRecordSize

public static int getRecordSize()

getOffsetList

public static List getOffsetList()

getComparativeDataSource

public static ComparativeTableControl.DataSource getComparativeDataSource(List lloydsBeaconList)