Files
BattleBane/src/engine/parsers/objects/wpak/CompoundCurveTemplate.java
T

31 lines
1.4 KiB
Java
Raw Normal View History

// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
// Magicbane Emulator Project © 2013 - 2026
// https://www.magicbane.com
package engine.parsers.objects.wpak;
import java.util.ArrayList;
import java.util.HashMap;
// One row of CompoundCurves.cfg: <name> then segments of <DownperRange> <SimpleCurveName> <params>.
// Most curves are one SlopedLine segment; DefaultCurveUp/Down have two, which the
// CompoundCurveType enum (one value per curve) can't hold.
public class CompoundCurveTemplate {
public static HashMap<String, CompoundCurveTemplate> _curves = new HashMap<>();
public String name;
public final ArrayList<Segment> segments = new ArrayList<>();
public static class Segment {
public int down_per_range;
public String simple_curve;
public float[] params;
}
}