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

com.almasb.fxgl.pathfinding.heuristic.DiagonalHeuristic Maven / Gradle / Ivy

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

package com.almasb.fxgl.pathfinding.heuristic;

import com.almasb.fxgl.core.collection.grid.Cell;

/**
 * @author Almas Baim (https://github.com/AlmasB)
 */
public abstract class DiagonalHeuristic extends Heuristic {

    private final int diagonalWeight;

    public DiagonalHeuristic(int weight, int diagonalWeight) {
        super(weight);
        this.diagonalWeight = diagonalWeight;
    }

    public int getDiagonalWeight() {
        return diagonalWeight;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy