Loading...
Searching...
No Matches
IRandomizer.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_RANDOMIZER_H_INCLUDED__
#define __I_RANDOMIZER_H_INCLUDED__
#include "IReferenceCounted.h"
namespace irr
{
class IRandomizer : public virtual IReferenceCounted
{
public:
virtual void reset(s32 value=0x0f0f0f0f) =0;
virtual s32 rand() const =0;
virtual f32 frand() const =0;
virtual s32 randMax() const =0;
};
} // end namespace irr
#endif
IReferenceCounted.h
irr::IRandomizer
Interface for generating random numbers.
Definition IRandomizer.h:15
irr::IRandomizer::rand
virtual s32 rand() const =0
generates a pseudo random number in the range 0..randMax()
irr::IRandomizer::frand
virtual f32 frand() const =0
generates a pseudo random number in the range 0..1
irr::IRandomizer::randMax
virtual s32 randMax() const =0
get maxmimum number generated by rand()
irr::IRandomizer::reset
virtual void reset(s32 value=0x0f0f0f0f)=0
resets the randomizer
irr::IReferenceCounted::IReferenceCounted
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:46
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::f32
float f32
32 bit floating point variable.
Definition irrTypes.h:104
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0