uk.me.parabola.imgfmt.app.mdr
Class Mdr13

java.lang.Object
  extended by uk.me.parabola.imgfmt.app.mdr.ConfigBase
      extended by uk.me.parabola.imgfmt.app.mdr.MdrSection
          extended by uk.me.parabola.imgfmt.app.mdr.Mdr13

public class Mdr13
extends MdrSection

Holds all the regions for each map.

Author:
Steve Ratcliffe

Constructor Summary
Mdr13(MdrConfig config)
           
 
Method Summary
 void addRegion(int mapIndex, int countryIndex, int regionIndex, int strOff)
           
 int getItemSize()
          The size of a record in the section.
 void writeSectData(ImgFileWriter writer)
          Write out the contents of this section.
 
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

Mdr13

public Mdr13(MdrConfig config)
Method Detail

addRegion

public void addRegion(int mapIndex,
                      int countryIndex,
                      int regionIndex,
                      int strOff)

writeSectData

public void writeSectData(ImgFileWriter writer)
Description copied from class: MdrSection
Write out the contents of this section.

Specified by:
writeSectData in class MdrSection
Parameters:
writer - Where to write it.

getItemSize

public int getItemSize()
Description copied from class: MdrSection
The size of a record in the section. This is not a constant and might vary on various factors, such as the file version, if we are preparing for a device, the number of maps etc.

Specified by:
getItemSize in class MdrSection
Returns:
The size of a record in this section.