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

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

public class ActiveSpell
extends Object


Field Summary
private static int ACTIVE_SPELL_RECORD_SIZE
           
private  byte[] activeSpellData
           
private  int activeSpellOffset
           
private static int SPELL_ATTRIBUTES_OFFSET
           
private static int SPELL_CASTER_OFFSET
           
private static int SPELL_DURATION_OFFSET
           
private static int SPELL_OVERLAY_ID_OFFSET
           
private static int SPELL_POWER_OFFSET
           
private static int SPELL_SKILL_RANK_OFFSET
           
private static int SPELL_SKILL_RANK_TYPE_EXPERT
           
private static int SPELL_SKILL_RANK_TYPE_MASTER
           
private static int SPELL_SKILL_RANK_TYPE_NORMAL
           
 
Constructor Summary
ActiveSpell()
           
ActiveSpell(String fileName)
           
 
Method Summary
static void addOffsets(List offsetList, int startingOffset, int index)
           
static boolean checkDataIntegrity(byte[] data, int offset, int expectedNewOffset)
           
 byte[] getActiveSpellData()
           
 int getActiveSpellOffset()
           
static ComparativeTableControl.DataSource getComparativeDataSource(List activeSpellList)
           
 long getEndDateTime()
           
static List getOffsetList()
           
 short getPower()
           
 short getRank()
           
static int getRecordSize()
           
 int initialize(byte[] dataSrc, int offset)
           
static int populateObjects(byte[] data, int offset, List activeSpellList, int activeSpellCount)
           
 void setEndDateTime(long value)
           
 void setPower(short value)
           
 void setRank(short value)
           
static int updateData(byte[] newData, int offset, List activeSpellList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTIVE_SPELL_RECORD_SIZE

private static final int ACTIVE_SPELL_RECORD_SIZE
See Also:
Constant Field Values

SPELL_DURATION_OFFSET

private static int SPELL_DURATION_OFFSET

SPELL_POWER_OFFSET

private static int SPELL_POWER_OFFSET

SPELL_SKILL_RANK_TYPE_NORMAL

private static int SPELL_SKILL_RANK_TYPE_NORMAL

SPELL_SKILL_RANK_TYPE_EXPERT

private static int SPELL_SKILL_RANK_TYPE_EXPERT

SPELL_SKILL_RANK_TYPE_MASTER

private static int SPELL_SKILL_RANK_TYPE_MASTER

SPELL_SKILL_RANK_OFFSET

private static int SPELL_SKILL_RANK_OFFSET

SPELL_OVERLAY_ID_OFFSET

private static int SPELL_OVERLAY_ID_OFFSET

SPELL_CASTER_OFFSET

private static int SPELL_CASTER_OFFSET

SPELL_ATTRIBUTES_OFFSET

private static int SPELL_ATTRIBUTES_OFFSET

activeSpellOffset

private int activeSpellOffset

activeSpellData

private byte[] activeSpellData
Constructor Detail

ActiveSpell

public ActiveSpell()

ActiveSpell

public ActiveSpell(String fileName)
Method Detail

getEndDateTime

public long getEndDateTime()

setEndDateTime

public void setEndDateTime(long value)

getPower

public short getPower()

setPower

public void setPower(short value)

getRank

public short getRank()

setRank

public void setRank(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 activeSpellList,
                                  int activeSpellCount)

updateData

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

getActiveSpellData

public byte[] getActiveSpellData()

getActiveSpellOffset

public int getActiveSpellOffset()

getRecordSize

public static int getRecordSize()

getOffsetList

public static List getOffsetList()

getComparativeDataSource

public static ComparativeTableControl.DataSource getComparativeDataSource(List activeSpellList)

addOffsets

public static void addOffsets(List offsetList,
                              int startingOffset,
                              int index)