package de.tomjanke.lost.game.action;

/**
 * Created by Tom on 28.05.2016.
 */
public class Action {

    public float ActionDuration;
    public Runnable EndRunnable;

    public Action(float ad) {
        ActionDuration = ad;
    }

    public Action(float ad, Runnable er) {
        ActionDuration = ad;
        EndRunnable = er;
    }

    public void end() {
        if (EndRunnable != null) EndRunnable.run();
    }

}
