package de.gurkenlabs.litiengine.entities;

import java.util.EventObject;

public class EntityMovedEvent extends EventObject {
  private static final long serialVersionUID = 2931711179495514204L;
  private final transient IEntity entity;
  private final double deltaX;
  private final double deltaY;

  public EntityMovedEvent(IMobileEntity entity, double deltaX, double deltaY) {
    super(entity);
    this.entity = entity;
    this.deltaX = deltaX;
    this.deltaY = deltaY;
  }

  public IEntity getEntity() {
    return this.entity;
  }

  public double getDeltaX() {
    return this.deltaX;
  }

  public double getDeltaY() {
    return this.deltaY;
  }
}

@@ -216,16 +216,22 @@
 nsient I
+Mobile
 Entity e
@@ -492,16 +492,22 @@
 public I
+Mobile
 Entity g

Return mobile entity instance