MRandomDeck

Engine/source/math/mRandomDeck.h

More...

Protected Attributes

Public Functions

addToPile(const Vector< T > & items)
draw(T * item, bool reshuffle)
removeAll(Vector< T > * outItems)

Detailed Description

Protected Attributes

Vector< T > mDeck 
Vector< T > mPile 
MRandomLCG * mRandGen 

Public Functions

MRandomDeck(MRandomLCG * randGen)

addToPile(const T & item)

addToPile(const Vector< T > & items)

draw(T * item, bool reshuffle)

removeAll(Vector< T > * outItems)

shuffle()