QuestWeaver
A procedural quest generator
weave::RandomStream Class Reference

RNG used by the quest system. More...

#include <WeaverTypes.h>

Public Member Functions

 RandomStream ()
 
 RandomStream (uint64_t seed)
 
virtual ~RandomStream ()=default
 
virtual int GetInt ()
 
virtual int GetIntInRange (int start, int end)
 
virtual int GetNormalIntInRange (int start, int end)
 
virtual uint64_t GetRandomIndex (uint64_t collectionSize)
 
virtual uint64_t GetULongInRange (uint64_t start, uint64_t end)
 
virtual void Seed (uint64_t seed)
 

Detailed Description

RNG used by the quest system.

Defines a serializable, seeded pseudo-random number generator that is used to generate random numbers for the quest system.

Definition at line 186 of file WeaverTypes.h.

Constructor & Destructor Documentation

weave::RandomStream::RandomStream ( )
inline

Definition at line 188 of file WeaverTypes.h.

weave::RandomStream::RandomStream ( uint64_t  seed)
inlineexplicit

Definition at line 192 of file WeaverTypes.h.

virtual weave::RandomStream::~RandomStream ( )
virtualdefault

Member Function Documentation

virtual int weave::RandomStream::GetInt ( )
inlinevirtual

Definition at line 201 of file WeaverTypes.h.

virtual int weave::RandomStream::GetIntInRange ( int  start,
int  end 
)
inlinevirtual

Definition at line 208 of file WeaverTypes.h.

virtual int weave::RandomStream::GetNormalIntInRange ( int  start,
int  end 
)
inlinevirtual

Definition at line 232 of file WeaverTypes.h.

virtual uint64_t weave::RandomStream::GetRandomIndex ( uint64_t  collectionSize)
inlinevirtual

Definition at line 254 of file WeaverTypes.h.

virtual uint64_t weave::RandomStream::GetULongInRange ( uint64_t  start,
uint64_t  end 
)
inlinevirtual

Definition at line 220 of file WeaverTypes.h.

virtual void weave::RandomStream::Seed ( uint64_t  seed)
inlinevirtual

Definition at line 247 of file WeaverTypes.h.


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