org.gamenet.application.mm8leveleditor.mm6
Class MM6SpritesLodFile

java.lang.Object
  extended bycom.mmbreakfast.unlod.lod.LodFile
      extended byorg.gamenet.application.mm8leveleditor.mm6.MM6SpritesLodFile

public class MM6SpritesLodFile
extends LodFile


Field Summary
private  BitmapsLodFile cachedBitmapsLodFile
           
private  Map cachedPaletteHashTable
           
static long ENTRIES_NUMBER_OFFSET
           
static long ENTRY_HEADER_LENGTH
           
static long HEADER_OFFSET
           
protected static int[] SIGNATURE
           
 
Fields inherited from class com.mmbreakfast.unlod.lod.LodFile
entries, ENTRY_CONSTRUCTOR, file, FILE_HEADER_SIZE_OFFSET, FILE_SIZE_MINUS_FILE_HEADER_SIZE_OFFSET, fileHeader, in, orderedEntries
 
Constructor Summary
MM6SpritesLodFile(File file, RandomAccessFileInputStream randomaccessfileinputstream)
           
 
Method Summary
 BitmapsLodFile getCachedBitmapsLodFile()
           
 Map getCachedPaletteHashTable()
           
 long getEntriesNumberOffset()
           
 Class getEntryClass()
           
 long getEntryHeaderLength()
           
 long getHeaderOffset()
           
 void setCachedBitmapsLodFile(BitmapsLodFile file)
           
protected  void verifySignature(RandomAccessFile randomaccessfile)
           
 
Methods inherited from class com.mmbreakfast.unlod.lod.LodFile
findLodEntryByFileName, findLodEntryForFile, getFile, getFileHeader, getFileHeaderSizeOffset, getFileName, getFileSizeMinusFileHeaderSizeOffset, getLodEntries, getNextEntry, getRandomAccessFileInputStream, readEntries, readEntryCount, readFileHeader, updateByAppendingData, verify, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER_OFFSET

public static final long HEADER_OFFSET
See Also:
Constant Field Values

ENTRY_HEADER_LENGTH

public static final long ENTRY_HEADER_LENGTH
See Also:
Constant Field Values

ENTRIES_NUMBER_OFFSET

public static final long ENTRIES_NUMBER_OFFSET
See Also:
Constant Field Values

SIGNATURE

protected static final int[] SIGNATURE

cachedPaletteHashTable

private Map cachedPaletteHashTable

cachedBitmapsLodFile

private BitmapsLodFile cachedBitmapsLodFile
Constructor Detail

MM6SpritesLodFile

public MM6SpritesLodFile(File file,
                         RandomAccessFileInputStream randomaccessfileinputstream)
                  throws IOException,
                         InvalidLodFileException
Method Detail

getCachedPaletteHashTable

public Map getCachedPaletteHashTable()

getCachedBitmapsLodFile

public BitmapsLodFile getCachedBitmapsLodFile()

setCachedBitmapsLodFile

public void setCachedBitmapsLodFile(BitmapsLodFile file)

verifySignature

protected void verifySignature(RandomAccessFile randomaccessfile)
                        throws IOException,
                               InvalidLodFileException
Overrides:
verifySignature in class LodFile
Throws:
IOException
InvalidLodFileException

getHeaderOffset

public long getHeaderOffset()
Specified by:
getHeaderOffset in class LodFile

getEntryHeaderLength

public long getEntryHeaderLength()
Specified by:
getEntryHeaderLength in class LodFile

getEntryClass

public Class getEntryClass()
Specified by:
getEntryClass in class LodFile

getEntriesNumberOffset

public long getEntriesNumberOffset()
Specified by:
getEntriesNumberOffset in class LodFile