|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object erland.game.tileadventure.BlockContainerData
public abstract class BlockContainerData
Field Summary | |
---|---|
protected int |
offsetX
The X offset in pixels |
protected int |
offsetY
The Y offset in pixels |
protected int |
sizeX
Number of horizontal blocks |
protected int |
sizeY
Number of vertical blocks |
protected int |
sizeZ
Number of height blocks |
protected int |
squareSizeX
The horizontal size of a single block in pixels |
protected int |
squareSizeY
The vertical size of a single block in pixels |
protected int |
squareSizeZ
The height of a single block in pixels |
protected int |
visibleSizeX
Number of visible horizontal blocks |
protected int |
visibleSizeY
Number of visible vertical blocks |
Constructor Summary | |
---|---|
|
BlockContainerData()
|
protected |
BlockContainerData(int offsetX,
int offsetY,
int sizeX,
int sizeY,
int sizeZ,
int squareSizeX,
int squareSizeY,
int squareSizeZ,
int visibleSizeX,
int visibleSizeY)
|
Method Summary | |
---|---|
int |
getDrawingSizeX()
|
int |
getDrawingSizeY()
|
int |
getOffsetX()
|
int |
getOffsetY()
|
int |
getScrollingOffsetX()
Gets the horizontal scrolling offset |
int |
getScrollingOffsetY()
Gets the vertical scrolling offset |
int |
getSizeX()
|
int |
getSizeY()
|
int |
getSizeZ()
|
int |
getSquareSizeX()
|
int |
getSquareSizeY()
|
int |
getSquareSizeZ()
|
void |
setScrollingOffsetX(int offsetX)
Sets the horizontal scrolling offset |
void |
setScrollingOffsetY(int offsetY)
Sets the horizontal scrolling offset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface erland.game.tileadventure.IrregularBlockContainerInterface |
---|
getBlockPositionX, getBlockPositionY, getDrawingPositionX, getDrawingPositionY, getPixelDrawingPositionX, getPixelDrawingPositionY, getPositionX, getPositionY, getScrollingSizeX, getScrollingSizeY, getVisible |
Field Detail |
---|
protected int offsetX
protected int offsetY
protected int sizeX
protected int sizeY
protected int sizeZ
protected int squareSizeX
protected int squareSizeY
protected int squareSizeZ
protected int visibleSizeX
protected int visibleSizeY
Constructor Detail |
---|
public BlockContainerData()
protected BlockContainerData(int offsetX, int offsetY, int sizeX, int sizeY, int sizeZ, int squareSizeX, int squareSizeY, int squareSizeZ, int visibleSizeX, int visibleSizeY)
Method Detail |
---|
public void setScrollingOffsetX(int offsetX)
offsetX
- The new X scrolling offsetpublic void setScrollingOffsetY(int offsetY)
offsetY
- The new Y scrolling offsetpublic int getScrollingOffsetX()
getScrollingOffsetX
in interface IrregularBlockContainerInterface
public int getScrollingOffsetY()
getScrollingOffsetY
in interface IrregularBlockContainerInterface
public int getSizeX()
getSizeX
in interface IrregularBlockContainerInterface
public int getSizeY()
getSizeY
in interface IrregularBlockContainerInterface
public int getSizeZ()
getSizeZ
in interface IrregularBlockContainerInterface
public int getSquareSizeX()
getSquareSizeX
in interface IrregularBlockContainerInterface
public int getSquareSizeY()
getSquareSizeY
in interface IrregularBlockContainerInterface
public int getSquareSizeZ()
getSquareSizeZ
in interface IrregularBlockContainerInterface
public int getOffsetX()
getOffsetX
in interface IrregularBlockContainerInterface
public int getOffsetY()
getOffsetY
in interface IrregularBlockContainerInterface
public int getDrawingSizeX()
getDrawingSizeX
in interface IrregularBlockContainerInterface
public int getDrawingSizeY()
getDrawingSizeY
in interface IrregularBlockContainerInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |