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

java.lang.Object
  extended by uk.me.parabola.imgfmt.app.mdr.MdrUtils

public class MdrUtils
extends java.lang.Object

A bunch of static routines for use in creating the MDR file.


Constructor Summary
MdrUtils()
           
 
Method Summary
static boolean canBeIndexed(int fullType)
           
static int getGroupForPoi(int fullType)
          Get the group number for the poi.
static int getSubtypeFromFullType(int fullType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MdrUtils

public MdrUtils()
Method Detail

getGroupForPoi

public static int getGroupForPoi(int fullType)
Get the group number for the poi. This is the first byte of the records in mdr9. Not entirely sure about how this works yet.

Parameters:
fullType - The primary type of the object.
Returns:
The group number. This is a number between 1 and 9 (and later perhaps higher numbers such as 0x40, so do not assume there are no gaps).

canBeIndexed

public static boolean canBeIndexed(int fullType)

getSubtypeFromFullType

public static int getSubtypeFromFullType(int fullType)