package ru.dk.gdxGP.GameWorld.Tasks;

import ru.dk.gdxGP.GameWorld.Interfaces.Actions.CheckerForTask;
import ru.dk.gdxGP.GameWorld.Task;

public class CustomTask extends Task {
    private CheckerForTask checker;

    public CustomTask(CheckerForTask checker) {
        this.checker = checker;
    }

    public CheckerForTask getChecker() {
        return checker;
    }

    public void setChecker(CheckerForTask checker) {
        this.checker = checker;
    }

    @Override
    protected boolean check() {
        return checker.checkTask(this);
    }
}
