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.MapitemIdToInfoMapprotected java.util.MapitemTypeToInfoMapprotected shortNextItemIDprotected byteNextObjectNameIDprotected intNextSpriteNameIDprotected java.util.MapobjectIdToNameMapprotected java.util.MapobjectNameToIdMapprotected byte[]serverDataCacheprotected java.util.MapspriteIdToNameMapprotected java.util.MapspriteNameToIdMapprotected java.util.ArrayListunsetObjectprotected java.util.ArrayListunsetSprites -
Constructor Summary
Constructors Constructor Description DictionaryData() -
Method Summary
Modifier and Type Method Description protected voidbackupCurrentDataSet()protected voidcreateErrorBackups()protected voiddeleteBackupCurrentDataSet()protected bytegetIdForObjectName(java.lang.String string)protected intgetIdForSpriteName(java.lang.String string)protected ItemInfogetItemInfoFromID(short short1)protected ItemInfogetItemInfoFromType(java.lang.String string)protected voidgetItemMods(java.util.List list)protected shortgetItemRegistryID(java.lang.String string)protected java.lang.StringgetItemTypeDebugString(short short1)protected java.lang.StringgetItemTypeFromID(short short1)protected voidgetModuleList(java.util.List list)protected java.lang.StringgetObjectNameFromID(byte byte1)protected java.lang.StringgetSpriteNameFromID(int int1)protected booleanisClient()protected voidload()protected voidloadFromByteBuffer(java.nio.ByteBuffer byteBuffer)protected voidparseCurrentItemSet()protected voidparseItemLoadList(java.util.Map map)protected voidparseObjectNameLoadList(java.util.List list)protected voidreset()protected voidsave()protected voidsaveAsText(java.lang.String string)protected voidsaveToByteBuffer(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.IOExceptionWorldDictionaryException
-
loadFromByteBuffer
protected void loadFromByteBuffer(java.nio.ByteBuffer byteBuffer) throws java.io.IOException- Throws:
java.io.IOException
-
save
- Throws:
java.io.IOExceptionWorldDictionaryException
-
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.IOExceptionWorldDictionaryException
-