aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/RangedAttribute.h
blob: f2c59324fdcaaa7d844f0c06a89e4a3d4cbf4526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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 wstring &name);
	//wstring getImportLegacyName();
};