-
Method Summary
boolean
void
Gets the center
Point2D of the entities collision box.
double
double
boolean
void
void
void
void
void
void
void
void
Methods inherited from interface de.gurkenlabs.litiengine.entities.IEntity
actions, addController, addEntityRenderListener, addListener, addTag, addTransformListener, animations, attachControllers, behavior, detachControllers, getAngle, getBoundingBox, getCenter, getController, getEnvironment, getHeight, getLocation, getMapId, getName, getProperties, getRenderType, getTags, getWidth, getX, getY, hasTag, isLoaded, isVisible, loaded, onMessage, onMessage, onRendered, perform, register, removed, removeListener, removeListener, removeListener, removeListener, removeListener, removeTag, renderWithLayer, sendMessage, setAngle, setController, setHeight, setLocation, setLocation, setMapId, setName, setRenderType, setRenderWithLayer, setSize, setVisible, setWidth, setX, setY
-
Method Details
-
-
-
-
-
getCollisionBox
Gets the collision box.
- Returns:
- the collision box
-
getCollisionBox
Gets the collision box.
- Parameters:
location - the location
- Returns:
- the collision box
-
getCollisionBoxCenter
Gets the center
Point2D of the entities collision box.
- Returns:
- The center
Point2D of the entities collision box
-
getCollisionBoxValign
Valign getCollisionBoxValign()
-
getCollisionBoxAlign
Align getCollisionBoxAlign()
-
-
getCollisionBoxHeight
double getCollisionBoxHeight()
-
getCollisionBoxWidth
double getCollisionBoxWidth()
-
hasCollision
boolean hasCollision()
Checks for collision.
- Returns:
- true, if successful
-
setCollision
void setCollision(boolean collision)
Sets the collision.
- Parameters:
collision - the new collision
-
setCollisionBoxHeight
void setCollisionBoxHeight(double collisionBoxHeight)
-
setCollisionBoxWidth
void setCollisionBoxWidth(double collisionBoxWidth)
-
setCollisionBoxAlign
void setCollisionBoxAlign(Align align)
-
setCollisionBoxValign
void setCollisionBoxValign(Valign valign)
-
setCollisionType
void setCollisionType(Collision collisionType)