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

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

public class ShopContents
extends Object


Field Summary
private  int gameVersion
           
private  ItemContainer itemContainer
           
private static int NUMBER_OF_ITEMS
           
private  long shopContentsDataOffset
           
 
Constructor Summary
ShopContents(int gameVersion)
           
 
Method Summary
static boolean checkDataIntegrity(int gameVersion, byte[] data, int offset, int expectedNewOffset)
           
 ContainedItem[] getContainedItemArray()
           
 int getGameVersion()
           
static int getRecordSize(int gameVersion)
           
 long getShopContentsDataOffset()
           
 int initialize(byte[] dataSrc, int offset)
           
static int populateObjects(int gameVersion, byte[] data, int offset, List shopContentsList, int shopContentsCount)
           
 int updateData(byte[] newData, int offset)
           
static int updateData(byte[] newData, int offset, List shopContentsList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUMBER_OF_ITEMS

private static final int NUMBER_OF_ITEMS
See Also:
Constant Field Values

shopContentsDataOffset

private long shopContentsDataOffset

gameVersion

private int gameVersion

itemContainer

private ItemContainer itemContainer
Constructor Detail

ShopContents

public ShopContents(int gameVersion)
Method Detail

getContainedItemArray

public ContainedItem[] getContainedItemArray()

initialize

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

updateData

public int updateData(byte[] newData,
                      int offset)

checkDataIntegrity

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

populateObjects

public static int populateObjects(int gameVersion,
                                  byte[] data,
                                  int offset,
                                  List shopContentsList,
                                  int shopContentsCount)

updateData

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

getShopContentsDataOffset

public long getShopContentsDataOffset()

getRecordSize

public static int getRecordSize(int gameVersion)

getGameVersion

public int getGameVersion()