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

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

public class Follower
extends Object


Field Summary
private static int FOLLOWER_NAME_MAXLENGTH
           
private static int FOLLOWER_PICTURE_NUMBER_OFFSET
           
private static int FOLLOWER_PROFESSION_NUMBER_OFFSET
           
private static int FOLLOWER_RECORD_LENGTH
           
private static int FOLLOWER1_PICTURE_NUMBER_OFFSET
           
private static int FOLLOWER1_PROFESSION_NUMBER_OFFSET
           
private static int FOLLOWER2_PICTURE_NUMBER_OFFSET
           
private static int FOLLOWER2_PROFESSION_NUMBER_OFFSET
           
private  byte[] followerData
           
private  String followerName
           
private  int followerOffset
           
private static int HIRE_FOLLOWER1a_OFFSET
           
private static int HIRE_FOLLOWER1b_OFFSET
           
private static int HIRE_FOLLOWER1c_OFFSET
           
private static int HIRE_FOLLOWER1d_OFFSET
           
private static int HIRE_FOLLOWER1e_OFFSET
           
private static int HIRE_FOLLOWER1g_OFFSET
           
private static int HIRE_FOLLOWER2a_OFFSET
           
private static int HIRE_FOLLOWER2b_OFFSET
           
private static int HIRE_FOLLOWER2d_OFFSET
           
private static int HIRE_FOLLOWER2e_OFFSET
           
private static int HIRE_FOLLOWER2f_OFFSET
           
private static int HIRE_FOLLOWER2g_OFFSET
           
 
Constructor Summary
Follower()
           
Follower(int size)
           
 
Method Summary
static int addNames(byte[] data, int offset, List followerList)
           
static boolean checkDataIntegrity(byte[] data, int offset, int expectedNewOffset)
           
static boolean checkDataIntegrityNames(byte[] data, int offset, int expectedNewOffset)
           
static ComparativeTableControl.DataSource getComparativeDataSource(List followerList)
           
 byte[] getFollowerData()
           
 String getFollowerName()
           
 int getFollowerOffset()
           
static List getOffsetList()
           
 int getPictureNumber()
           
 int getProfessionNumber()
           
static int getRecordSize()
           
static int getRecordSizeName()
           
 int initialize(byte[] dataSrc, int offset)
           
 int initializeName(byte[] dataSrc, int offset)
           
static int populateObjects(byte[] data, int offset, List followerList, int followerCount)
           
 void setFollowerName(String followerName)
           
 void setPictureNumber(int value)
           
 void setProfessionNumber(int value)
           
static int updateData(byte[] newData, int offset, List followerList)
           
static int updateDataNames(byte[] newData, int offset, List followerList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOLLOWER_RECORD_LENGTH

private static final int FOLLOWER_RECORD_LENGTH
See Also:
Constant Field Values

FOLLOWER_PICTURE_NUMBER_OFFSET

private static int FOLLOWER_PICTURE_NUMBER_OFFSET

FOLLOWER_PROFESSION_NUMBER_OFFSET

private static int FOLLOWER_PROFESSION_NUMBER_OFFSET

HIRE_FOLLOWER1a_OFFSET

private static int HIRE_FOLLOWER1a_OFFSET

FOLLOWER1_PICTURE_NUMBER_OFFSET

private static int FOLLOWER1_PICTURE_NUMBER_OFFSET

HIRE_FOLLOWER1b_OFFSET

private static int HIRE_FOLLOWER1b_OFFSET

HIRE_FOLLOWER1c_OFFSET

private static int HIRE_FOLLOWER1c_OFFSET

FOLLOWER1_PROFESSION_NUMBER_OFFSET

private static int FOLLOWER1_PROFESSION_NUMBER_OFFSET

HIRE_FOLLOWER1d_OFFSET

private static int HIRE_FOLLOWER1d_OFFSET

HIRE_FOLLOWER1e_OFFSET

private static int HIRE_FOLLOWER1e_OFFSET

HIRE_FOLLOWER1g_OFFSET

private static int HIRE_FOLLOWER1g_OFFSET

HIRE_FOLLOWER2a_OFFSET

private static int HIRE_FOLLOWER2a_OFFSET

FOLLOWER2_PICTURE_NUMBER_OFFSET

private static int FOLLOWER2_PICTURE_NUMBER_OFFSET

HIRE_FOLLOWER2b_OFFSET

private static int HIRE_FOLLOWER2b_OFFSET

FOLLOWER2_PROFESSION_NUMBER_OFFSET

private static int FOLLOWER2_PROFESSION_NUMBER_OFFSET

HIRE_FOLLOWER2d_OFFSET

private static int HIRE_FOLLOWER2d_OFFSET

HIRE_FOLLOWER2e_OFFSET

private static int HIRE_FOLLOWER2e_OFFSET

HIRE_FOLLOWER2f_OFFSET

private static int HIRE_FOLLOWER2f_OFFSET

HIRE_FOLLOWER2g_OFFSET

private static int HIRE_FOLLOWER2g_OFFSET

FOLLOWER_NAME_MAXLENGTH

private static int FOLLOWER_NAME_MAXLENGTH

followerOffset

private int followerOffset

followerData

private byte[] followerData

followerName

private String followerName
Constructor Detail

Follower

public Follower()

Follower

public Follower(int size)
Method Detail

initialize

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

initializeName

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

getFollowerName

public String getFollowerName()

setFollowerName

public void setFollowerName(String followerName)

getPictureNumber

public int getPictureNumber()

setPictureNumber

public void setPictureNumber(int value)

getProfessionNumber

public int getProfessionNumber()

setProfessionNumber

public void setProfessionNumber(int value)

checkDataIntegrity

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

checkDataIntegrityNames

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

populateObjects

public static int populateObjects(byte[] data,
                                  int offset,
                                  List followerList,
                                  int followerCount)

addNames

public static int addNames(byte[] data,
                           int offset,
                           List followerList)

updateDataNames

public static int updateDataNames(byte[] newData,
                                  int offset,
                                  List followerList)

updateData

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

getFollowerData

public byte[] getFollowerData()

getFollowerOffset

public int getFollowerOffset()

getRecordSize

public static int getRecordSize()

getRecordSizeName

public static int getRecordSizeName()

getOffsetList

public static List getOffsetList()

getComparativeDataSource

public static ComparativeTableControl.DataSource getComparativeDataSource(List followerList)