|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deken.game.motion.BaseMotion
public abstract class BaseMotion
Title: BaseMotion
Description:
Copyright: Copyright (c) Jan 18, 2015
Field Summary | |
---|---|
protected BoundingBox |
boundingBox
|
protected boolean |
boundingBoxSet
|
Constructor Summary | |
---|---|
BaseMotion()
|
Method Summary | |
---|---|
BoundingBox |
getBounds()
Returns the motions BoundingBox for collision detection at the Motion level. |
boolean |
isBoundsSet()
Returns true if the BoundingBox is set for Collision. |
void |
setBoundingBox(BoundingBox boundingBox)
Set the BoundingBox size for Collision detection at the Motion level. |
void |
setBoundingBox(int left,
int top,
int right,
int bottom)
Set the BoundingBox size for Collision detection at the Motion level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.deken.game.motion.Motion |
---|
copy, draw, getAnimations, getDirection, getImage, getName, reset, setDirection, setName, update |
Field Detail |
---|
protected BoundingBox boundingBox
protected boolean boundingBoxSet
Constructor Detail |
---|
public BaseMotion()
Method Detail |
---|
public BoundingBox getBounds()
Motion
getBounds
in interface Motion
public boolean isBoundsSet()
Motion
isBoundsSet
in interface Motion
public void setBoundingBox(BoundingBox boundingBox)
Motion
setBoundingBox
in interface Motion
public void setBoundingBox(int left, int top, int right, int bottom)
Motion
setBoundingBox
in interface Motion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |