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

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

public class MapNote
extends Object


Field Summary
private static int ACTIVE_OFFSET
           
private static int ID_OFFSET
           
private static int MAP_NOTE_RECORD_SIZE
           
private  byte[] mapNoteData
           
private static int PADDING_OFFSET
           
private static int TEXT_MAX_LENGTH
           
private static int TEXT_OFFSET
           
private static int X_OFFSET
           
private static int Y_OFFSET
           
 
Constructor Summary
MapNote()
           
MapNote(short id, boolean active, short x, short y, String text)
           
 
Method Summary
static ComparativeTableControl.DataSource getComparativeDataSource(List monsterList)
           
 short getId()
           
 byte[] getMapNoteData()
           
static List getOffsetList()
           
static int getRecordSize()
           
 String getText()
           
 int getTextMaxLength()
           
 short getX()
           
 short getY()
           
 int initialize(byte[] dataSrc, int offset)
           
 boolean isActive()
           
static int populateObjects(byte[] data, int offset, List mapNoteList, int numberOfMapNodes)
           
 void setActive(boolean active)
           
 void setId(short id)
           
 void setText(String text)
           
 void setX(short x)
           
 void setY(short y)
           
static int updateData(byte[] newData, int offset, List mapNoteList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAP_NOTE_RECORD_SIZE

private static final int MAP_NOTE_RECORD_SIZE
See Also:
Constant Field Values

ACTIVE_OFFSET

private static final int ACTIVE_OFFSET
See Also:
Constant Field Values

PADDING_OFFSET

private static final int PADDING_OFFSET
See Also:
Constant Field Values

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

TEXT_OFFSET

private static final int TEXT_OFFSET
See Also:
Constant Field Values

TEXT_MAX_LENGTH

private static final int TEXT_MAX_LENGTH
See Also:
Constant Field Values

ID_OFFSET

private static final int ID_OFFSET
See Also:
Constant Field Values

mapNoteData

private byte[] mapNoteData
Constructor Detail

MapNote

public MapNote()

MapNote

public MapNote(short id,
               boolean active,
               short x,
               short y,
               String text)
Method Detail

initialize

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

populateObjects

public static int populateObjects(byte[] data,
                                  int offset,
                                  List mapNoteList,
                                  int numberOfMapNodes)

updateData

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

getRecordSize

public static int getRecordSize()

isActive

public boolean isActive()

setActive

public void setActive(boolean active)

getId

public short getId()

setId

public void setId(short id)

getText

public String getText()

setText

public void setText(String text)

getX

public short getX()

setX

public void setX(short x)

getY

public short getY()

setY

public void setY(short y)

getMapNoteData

public byte[] getMapNoteData()

getTextMaxLength

public int getTextMaxLength()

getOffsetList

public static List getOffsetList()

getComparativeDataSource

public static ComparativeTableControl.DataSource getComparativeDataSource(List monsterList)