Package zombie.world
Class DictionaryData
java.lang.Object
zombie.world.DictionaryData
- Direct Known Subclasses:
DictionaryDataClient
public class DictionaryData
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map
itemIdToInfoMap
protected java.util.Map
itemTypeToInfoMap
protected short
NextItemID
protected byte
NextObjectNameID
protected int
NextSpriteNameID
protected java.util.Map
objectIdToNameMap
protected java.util.Map
objectNameToIdMap
protected byte[]
serverDataCache
protected java.util.Map
spriteIdToNameMap
protected java.util.Map
spriteNameToIdMap
protected java.util.ArrayList
unsetObject
protected java.util.ArrayList
unsetSprites
-
Constructor Summary
Constructors Constructor Description DictionaryData()
-
Method Summary
Modifier and Type Method Description protected void
backupCurrentDataSet()
protected void
createErrorBackups()
protected void
deleteBackupCurrentDataSet()
protected byte
getIdForObjectName(java.lang.String string)
protected int
getIdForSpriteName(java.lang.String string)
protected ItemInfo
getItemInfoFromID(short short1)
protected ItemInfo
getItemInfoFromType(java.lang.String string)
protected void
getItemMods(java.util.List list)
protected short
getItemRegistryID(java.lang.String string)
protected java.lang.String
getItemTypeDebugString(short short1)
protected java.lang.String
getItemTypeFromID(short short1)
protected void
getModuleList(java.util.List list)
protected java.lang.String
getObjectNameFromID(byte byte1)
protected java.lang.String
getSpriteNameFromID(int int1)
protected boolean
isClient()
protected void
load()
protected void
loadFromByteBuffer(java.nio.ByteBuffer byteBuffer)
protected void
parseCurrentItemSet()
protected void
parseItemLoadList(java.util.Map map)
protected void
parseObjectNameLoadList(java.util.List list)
protected void
reset()
protected void
save()
protected void
saveAsText(java.lang.String string)
protected void
saveToByteBuffer(java.nio.ByteBuffer byteBuffer)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
itemIdToInfoMap
protected final java.util.Map itemIdToInfoMap -
itemTypeToInfoMap
protected final java.util.Map itemTypeToInfoMap -
spriteNameToIdMap
protected final java.util.Map spriteNameToIdMap -
spriteIdToNameMap
protected final java.util.Map spriteIdToNameMap -
objectNameToIdMap
protected final java.util.Map objectNameToIdMap -
objectIdToNameMap
protected final java.util.Map objectIdToNameMap -
unsetObject
protected final java.util.ArrayList unsetObject -
unsetSprites
protected final java.util.ArrayList unsetSprites -
NextItemID
protected short NextItemID -
NextSpriteNameID
protected int NextSpriteNameID -
NextObjectNameID
protected byte NextObjectNameID -
serverDataCache
protected byte[] serverDataCache
-
-
Constructor Details
-
DictionaryData
public DictionaryData()
-
-
Method Details
-
isClient
protected boolean isClient() -
reset
protected void reset() -
getItemInfoFromType
-
getItemInfoFromID
-
getItemRegistryID
protected final short getItemRegistryID(java.lang.String string) -
getItemTypeFromID
protected final java.lang.String getItemTypeFromID(short short1) -
getItemTypeDebugString
protected final java.lang.String getItemTypeDebugString(short short1) -
getSpriteNameFromID
protected final java.lang.String getSpriteNameFromID(int int1) -
getIdForSpriteName
protected final int getIdForSpriteName(java.lang.String string) -
getObjectNameFromID
protected final java.lang.String getObjectNameFromID(byte byte1) -
getIdForObjectName
protected final byte getIdForObjectName(java.lang.String string) -
getItemMods
protected final void getItemMods(java.util.List list) -
getModuleList
protected final void getModuleList(java.util.List list) -
parseItemLoadList
- Throws:
WorldDictionaryException
-
parseCurrentItemSet
- Throws:
WorldDictionaryException
-
parseObjectNameLoadList
- Throws:
WorldDictionaryException
-
backupCurrentDataSet
protected void backupCurrentDataSet() throws java.io.IOException- Throws:
java.io.IOException
-
deleteBackupCurrentDataSet
protected void deleteBackupCurrentDataSet() throws java.io.IOException- Throws:
java.io.IOException
-
createErrorBackups
protected void createErrorBackups() -
load
- Throws:
java.io.IOException
WorldDictionaryException
-
loadFromByteBuffer
protected void loadFromByteBuffer(java.nio.ByteBuffer byteBuffer) throws java.io.IOException- Throws:
java.io.IOException
-
save
- Throws:
java.io.IOException
WorldDictionaryException
-
saveToByteBuffer
protected void saveToByteBuffer(java.nio.ByteBuffer byteBuffer) throws java.io.IOException- Throws:
java.io.IOException
-
saveAsText
protected void saveAsText(java.lang.String string) throws java.io.IOException, WorldDictionaryException- Throws:
java.io.IOException
WorldDictionaryException
-