All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.almasb.fxgl.entity.action.ContinuousAction Maven / Gradle / Ivy

/*
 * FXGL - JavaFX Game Library. The MIT License (MIT).
 * Copyright (c) AlmasB ([email protected]).
 * See LICENSE for details.
 */

package com.almasb.fxgl.entity.action;

/**
 * This action runs over time.
 *
 * @author Almas Baimagambetov ([email protected])
 */
public abstract class ContinuousAction extends Action {

    @Override
    protected final void onUpdate(double tpf) {
        perform(tpf);
    }

    protected abstract void perform(double tpf);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy