Adds BattleRandom methods for unsigned 32 bit numbers
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2022-03-26 11:36:13 +01:00
parent 4f77d30a7d
commit 5dff6d735f
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ namespace CreatureLib::Battling {
i32 Get() noexcept { return _random.Get(); } i32 Get() noexcept { return _random.Get(); }
i32 Get(i32 max) noexcept { return _random.Get(max); } i32 Get(i32 max) noexcept { return _random.Get(max); }
i32 Get(i32 min, i32 max) noexcept { return _random.Get(min, max); } i32 Get(i32 min, i32 max) noexcept { return _random.Get(min, max); }
u32 GetUnsigned() noexcept { return _random.GetUnsigned(); }
u32 GetUnsigned(u32 max) noexcept { return _random.GetUnsigned(max); }
u32 GetUnsigned(u32 min, u32 max) noexcept { return _random.GetUnsigned(min, max); }
ArbUt::Random& GetRNG() noexcept { return _random; } ArbUt::Random& GetRNG() noexcept { return _random; }
uint_fast32_t GetSeed() const noexcept { return _random.GetSeed(); } uint_fast32_t GetSeed() const noexcept { return _random.GetSeed(); }
}; };