EHM DAL 0.2.3
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
weight.h
1#pragma once
2
3// Application headers
4#include "include/data_types/attribute/attribute.h"
5
6namespace ehm_dal::data_types {
10class Weight : public Attribute<quint8>
11{
12public:
13 Weight(quint8 weight_kilograms = 0);
14
15private:
16 inline constexpr quint8 upperLimit() const override { return 255; }
17};
18
19} // namespace ehm_dal::data_types
The Attribute class is a template class for attribute-like values with lower and upper limit values.
Definition: attribute.h:12
The Weight class stores weight in kilograms.
Definition: weight.h:11
namespace ehm_dal::data_types
Definition: attribute.h:6