Skip to content
Snippets Groups Projects
Droplet.java 383 B
Newer Older
package nloc;

public class Droplet {
  private Position position;
  private DropletType type;

  public Droplet(DropletType type, Position position) {
    this.position = position;
    this.type = type;
  }

  public void move() {
    position.increment(this);
  }

  public DropletType getType() {
    return type;
  }

  public Position getPosition() {
    return position;
  }
}