Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Entity {
- // ...
- public boolean move(int xDifference, int yDifference) {
- // ...
- this.game.animateEntity(this, this.x, this.y, newX, newY, new OnActionCompleted() {
- @Override
- public void completed(Action action) {
- // How do I access the Entity from here?
- System.out.println("Action completed!");
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment