|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.imgfmt.app.mdr.ConfigBase
uk.me.parabola.imgfmt.app.mdr.MdrSection
uk.me.parabola.imgfmt.app.mdr.MdrMapSection
uk.me.parabola.imgfmt.app.mdr.Mdr5
public class Mdr5
Section containing cities. We need: map number, city index in map, offset in LBL, flags and pointer into MDR 15 for the string name.
Constructor Summary | |
---|---|
Mdr5(MdrConfig config)
|
Method Summary | |
---|---|
void |
addCity(int mapIndex,
Mdr5Record record,
int lblOff,
java.lang.String name,
int strOff)
|
void |
finishCities()
Called after all cities to sort and number them. |
int |
getExtraValue()
Known structure: bits 0-1: size of local city index - 1 (all values appear to work) bits 2-3: size of label offset (only 0 and 3 appear to work) bit 4 does not appear to have any effect |
int |
getItemSize()
Base size of 8, plus enough bytes to represent the map number and the city number. |
int |
getNumberOfItems()
The number of records in this section. |
int |
getPointerSize()
Get the size of an integer that is sufficient to store a record number from this section. |
void |
writeSectData(ImgFileWriter writer)
Write out the contents of this section. |
Methods inherited from class uk.me.parabola.imgfmt.app.mdr.MdrMapSection |
---|
addIndexPointer, init, putCityIndex, putPoiIndex, putRegionIndex, setMapIndex |
Methods inherited from class uk.me.parabola.imgfmt.app.mdr.MdrSection |
---|
getSizes, numberToPointerSize, putMapIndex, putN, putStringOffset, setSizes |
Methods inherited from class uk.me.parabola.imgfmt.app.mdr.ConfigBase |
---|
getConfig, isForDevice, setConfig |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Mdr5(MdrConfig config)
Method Detail |
---|
public void addCity(int mapIndex, Mdr5Record record, int lblOff, java.lang.String name, int strOff)
public void finishCities()
public void writeSectData(ImgFileWriter writer)
MdrSection
writeSectData
in class MdrSection
writer
- Where to write it.public int getItemSize()
getItemSize
in class MdrSection
public int getNumberOfItems()
MdrMapSection
getNumberOfItems
in class MdrMapSection
public int getPointerSize()
getPointerSize
in class MdrMapSection
public int getExtraValue()
getExtraValue
in class MdrMapSection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |