public class BoundsComponent
extends java.lang.Object
implements com.badlogic.ashley.core.Component, com.badlogic.gdx.utils.Pool.Poolable
| Modifier and Type | Field and Description |
|---|---|
com.badlogic.gdx.math.Rectangle |
bounds |
com.badlogic.gdx.math.Vector2 |
offset |
| Constructor and Description |
|---|
BoundsComponent() |
| Modifier and Type | Method and Description |
|---|---|
static BoundsComponent |
create(com.badlogic.ashley.core.Engine engine) |
void |
reset() |
BoundsComponent |
setBounds(float x,
float y,
float width,
float height) |
BoundsComponent |
setBounds(com.badlogic.gdx.math.Rectangle r) |
BoundsComponent |
setOffset(float x,
float y) |
public com.badlogic.gdx.math.Rectangle bounds
public com.badlogic.gdx.math.Vector2 offset
public static BoundsComponent create(com.badlogic.ashley.core.Engine engine)
public BoundsComponent setBounds(com.badlogic.gdx.math.Rectangle r)
public BoundsComponent setBounds(float x, float y, float width, float height)
public BoundsComponent setOffset(float x, float y)
public void reset()
reset in interface com.badlogic.gdx.utils.Pool.Poolable