|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alienfactory.javamappy.MapHeader
public class MapHeader
MapHeader :: This class represents the data held within the MPHD chunk.
Constructor Summary | |
---|---|
MapHeader()
|
Method Summary | |
---|---|
int |
getBlockGapX()
|
int |
getBlockGapY()
|
int |
getBlockHeight()
Returns the height of a Block in pixels. |
int |
getBlockSize()
|
int |
getBlockStaggerX()
|
int |
getBlockStaggerY()
|
int |
getBlockWidth()
Returns the width of a Block in pixels. |
int |
getChromeKey()
For colour depths 16 and 24 this returns the Colour that is rendered transparent. |
int |
getChromeKeyIndex()
For a colour depths of 8, this returns the colour index into Map.getColours() that is rendered transparent. |
int |
getClickMask()
|
int |
getColourDepth()
Returns the colour depth of the block images. |
int |
getMapBlockHeight()
Returns the height of the Map in Blocks . |
int |
getMapBlockWidth()
Returns the width of the Map in Blocks . |
int |
getMapPixelHeight()
Returns the height of the Map in pixels. |
int |
getMapPixelWidth()
Returns the width of the Map in pixels. |
int |
getMapType()
I'm not really sure what this is, but from my own observations I've noticed the following: 0 = FMP 0.5 1 = FMP 1.0 2 = FMP 1.0 RLE (Run Length Encoding) |
int |
getMapVersionMajor()
Returns the major part of the FMP version. |
int |
getMapVersionMinor()
Returns the minor part of the FMP version. |
int |
getNoOfBlocks()
|
int |
getNoOfImages()
|
int |
getTextStringUserDataIndex()
Used by the Block Chunk Loader. |
boolean |
isLsb()
|
boolean |
isRisingPillarMode()
Rising Pillar Mode is essentially Isometric Mode. |
void |
setBlockGapX(int blockGapX)
|
void |
setBlockGapY(int blockGapY)
|
void |
setBlockHeight(int blockHeight)
|
void |
setBlockSize(int blockSize)
|
void |
setBlockStaggerX(int blockStaggerX)
|
void |
setBlockStaggerY(int blockStaggerY)
|
void |
setBlockWidth(int blockWidth)
|
void |
setChromeKey(int chromeKey)
|
void |
setChromeKeyIndex(int chromeKeyIndex)
|
void |
setClickMask(int clickMask)
|
void |
setColourDepth(int colourDepth)
|
void |
setLsb(boolean lsb)
|
void |
setMapBlockHeight(int mapHeight)
|
void |
setMapBlockWidth(int mapWidth)
|
void |
setMapType(int mapType)
|
void |
setMapVersionMajor(int mapVersionMajor)
|
void |
setMapVersionMinor(int mapVersionMinor)
|
void |
setNoOfBlocks(int noOfBlocks)
|
void |
setNoOfImages(int noOfImages)
|
void |
setRisingPillarMode(boolean risingPillarMode)
|
void |
setTextStringUserDataIndex(int textStringUserDataIndex)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapHeader()
Method Detail |
---|
public boolean isLsb()
public int getBlockGapX()
public int getBlockGapY()
public int getBlockHeight()
Block
in pixels.
public int getBlockSize()
public int getBlockStaggerX()
public int getBlockStaggerY()
public int getBlockWidth()
Block
in pixels.
public int getChromeKey()
public int getChromeKeyIndex()
Map.getColours()
that is rendered transparent.
public int getClickMask()
public int getColourDepth()
public int getMapBlockHeight()
Map
in Blocks
.
public int getMapPixelHeight()
Map
in pixels. This takes into account
the staggered block layout of an isometric map.
public int getMapType()
public int getMapVersionMajor()
public int getMapVersionMinor()
public int getMapBlockWidth()
Map
in Blocks
.
public int getMapPixelWidth()
Map
in pixels. This takes into account
the staggered block layout of an isometric map.
public int getNoOfBlocks()
public int getNoOfImages()
public boolean isRisingPillarMode()
public int getTextStringUserDataIndex()
public void setLsb(boolean lsb)
public void setBlockGapX(int blockGapX)
public void setBlockGapY(int blockGapY)
public void setBlockHeight(int blockHeight)
public void setBlockSize(int blockSize)
public void setBlockStaggerX(int blockStaggerX)
public void setBlockStaggerY(int blockStaggerY)
public void setBlockWidth(int blockWidth)
public void setChromeKey(int chromeKey)
public void setChromeKeyIndex(int chromeKeyIndex)
public void setClickMask(int clickMask)
public void setColourDepth(int colourDepth)
public void setMapBlockHeight(int mapHeight)
public void setMapType(int mapType)
public void setMapVersionMajor(int mapVersionMajor)
public void setMapVersionMinor(int mapVersionMinor)
public void setMapBlockWidth(int mapWidth)
public void setNoOfBlocks(int noOfBlocks)
public void setNoOfImages(int noOfImages)
public void setRisingPillarMode(boolean risingPillarMode)
public void setTextStringUserDataIndex(int textStringUserDataIndex)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |