|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deken.game.map.MapElement
public class MapElement
Constructor Summary | |
---|---|
MapElement(Decor decor,
boolean placeHolder,
boolean nonCollision,
int xTile,
int yTile,
int layerTile)
|
|
MapElement(Decor decor,
int xTile,
int yTile,
int layerTile)
|
Method Summary | |
---|---|
Decor |
getDecor()
Returns the Decor at this location. |
int |
getLayerTile()
|
int |
getxTile()
|
int |
getyTile()
|
boolean |
isNonCollision()
|
boolean |
isPlaceHolder()
The place holder is used for collision detection. |
void |
setDecor(Decor decor)
Sets the decor for this location. |
void |
setNonCollision(boolean nonCollision)
Sets if this Decor can be collided with or passed through. |
void |
setPlaceHolder(boolean placeHolder)
PlaceHolder is a flag for an adjacent tile, where the Decor is larger then a single cell. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapElement(Decor decor, int xTile, int yTile, int layerTile)
public MapElement(Decor decor, boolean placeHolder, boolean nonCollision, int xTile, int yTile, int layerTile)
decor
- placeHolder
- nonCollision
- Method Detail |
---|
public Decor getDecor()
public int getLayerTile()
public int getxTile()
public int getyTile()
public boolean isPlaceHolder()
public boolean isNonCollision()
public void setDecor(Decor decor)
decor
- public void setNonCollision(boolean nonCollision)
nonCollision
- public void setPlaceHolder(boolean placeHolder)
placeHolder
- public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |