move method

void move (double dx, double dy)

Updates the Entity's moving parameters, e.g. dx and dy

Implementation

void move(double dx, double dy) {
  this.dx = dx;
  this.dy = dy;
}