mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 19:57:06 +01:00
54d3a1040a
- utilities/enumset.h: EnumSet<E>, a set of the values of an enum class whose
values are bits, with the operations CouplingSet had (HasAll, HasAny,
Empty, Set, Clear, Without, |, &, ^, ==, FromBits, Bits). CouplingSet is
EnumSet<Coupling> now; an enum is a kind of the sets by IsEnumSetKind<E>,
which gives it its operator |.
- the damage of a vehicle (DamageFlag) is a DamageSet of VehicleDamage
instead of the int and the dtrain_* constants. A bit means one thing for a
locomotive and another for a wagon; both names are there (thinWheel and
loadShift, ventilator and loadDamage, engine and loadDestroyed).
- the SetDamage command of the scenery adds or takes away the damage by its
number as SetFlag() did (setOrClear()); "WRECKED" is still the set of the
number 255; the bearing divisor of the resistance stays the number 4.
- the damage of the tracks and of the catenary (dtrack_*, the traction's
DamageFlag) are other flags and stay as they were.
No change in behaviour: 1144/1144 tests, golden traces exact against staging
62f7a29b.