Dungeon Generator  1.6.6
Procedural 3D dungeon generator plugin for Unreal Engine 5. Easy generation of levels, mini-maps and missions.
UDungeonRandom Class Reference

#include <DungeonRandom.h>

Inheritance diagram for UDungeonRandom:

Public Member Functions

void SetOwner (const std::shared_ptr< dungeon::Random > &random)
 
bool GetBoolean () const
 
int32 GetIntegerSign () const
 
int32 GetInteger () const
 
int32 GetIntegerFrom (const int32 to) const
 
int32 GetIntegerInRangeFrom (const int32 from, const int32 to) const
 
float GetNumberSign () const
 
float GetFloat () const
 
float GetFloatFrom (const float to) const
 
float GetFloatInRangeFrom (const float from, const float to) const
 

Detailed Description

Random numbers for dungeon generation available from BluePrint BluePrintから利用可能なダンジョン生成用乱数

Member Function Documentation

◆ GetBoolean()

bool UDungeonRandom::GetBoolean ( ) const
Returns
true or false

◆ GetFloat()

float UDungeonRandom::GetFloat ( ) const

Get a random number

Returns
Returns the range [type_min,type_max) if T is an integer, or [0,1] with equal probability if T is a real number.

◆ GetFloatFrom()

float UDungeonRandom::GetFloatFrom ( const float  to) const

Get a random number

Parameters
[in]toUpper value
Returns
Returns the range [0,to) if T is an integer, or [0,to] with equal probability if T is a real number.

◆ GetFloatInRangeFrom()

float UDungeonRandom::GetFloatInRangeFrom ( const float  from,
const float  to 
) const

Get a random number

Parameters
[in]fromLower value
[in]toUpper value
Returns
Returns the range [from,to) if T is an integer, or [from,to] with equal probability if T is a real number.

◆ GetInteger()

int32 UDungeonRandom::GetInteger ( ) const

Get a random number

Returns
Returns the range [type_min,type_max) if T is an integer, or [0,1] with equal probability if T is a real number.

◆ GetIntegerFrom()

int32 UDungeonRandom::GetIntegerFrom ( const int32  to) const

Get a random number

Parameters
[in]toUpper value
Returns
Returns the range [0,to) if T is an integer, or [0,to] with equal probability if T is a real number.

◆ GetIntegerInRangeFrom()

int32 UDungeonRandom::GetIntegerInRangeFrom ( const int32  from,
const int32  to 
) const

Get a random number

Parameters
[in]fromLower value
[in]toUpper value
Returns
Returns the range [from,to) if T is an integer, or [from,to] with equal probability if T is a real number.

◆ GetIntegerSign()

int32 UDungeonRandom::GetIntegerSign ( ) const
Returns
-1 or 1

◆ GetNumberSign()

float UDungeonRandom::GetNumberSign ( ) const
Returns
-1 or 1

The documentation for this class was generated from the following files: