public abstract class TranslateOperation extends java.lang.Object implements RenderOperation
Graphics.translate(float, float)
. This class must be
extended and implement
updateTranslation(Vector2, GameContainer, float)
Constructor and Description |
---|
TranslateOperation() |
Modifier and Type | Method and Description |
---|---|
void |
apply(GameContainer gc,
Graphics g) |
void |
interpolate(GameContainer gc,
float alpha) |
void |
unapply(GameContainer gc,
Graphics g) |
void |
update(GameContainer gc,
float delta) |
abstract void |
updateTranslation(com.badlogic.gdx.math.Vector2 translation,
GameContainer gc,
float delta) |
public abstract void updateTranslation(com.badlogic.gdx.math.Vector2 translation, GameContainer gc, float delta)
public void update(GameContainer gc, float delta)
update
in interface RenderOperation
public void interpolate(GameContainer gc, float alpha)
interpolate
in interface RenderOperation
public void apply(GameContainer gc, Graphics g)
apply
in interface RenderOperation
public void unapply(GameContainer gc, Graphics g)
unapply
in interface RenderOperation