mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-07 08:37:12 +00:00
21 lines
501 B
C++
21 lines
501 B
C++
#pragma once
|
|
|
|
#include "BaseAttribute.h"
|
|
|
|
class RangedAttribute : public BaseAttribute {
|
|
private:
|
|
double minValue;
|
|
double maxValue;
|
|
|
|
public:
|
|
RangedAttribute(eATTRIBUTE_ID id, double defaultValue, double minValue,
|
|
double maxValue);
|
|
|
|
double getMinValue();
|
|
double getMaxValue();
|
|
double sanitizeValue(double value);
|
|
|
|
// 4J: Removed legacy name
|
|
// RangedAttribute *importLegacyName(const std::wstring &name);
|
|
// std::wstring getImportLegacyName();
|
|
}; |