Irrlicht 3D Engine
IRandomizer.h
Go to the documentation of this file.
00001 // Copyright (C) 2002-2012 Nikolaus Gebhardt
00002 // This file is part of the "Irrlicht Engine".
00003 // For conditions of distribution and use, see copyright notice in irrlicht.h
00004 
00005 #ifndef __I_RANDOMIZER_H_INCLUDED__
00006 #define __I_RANDOMIZER_H_INCLUDED__
00007 
00008 #include "IReferenceCounted.h"
00009 
00010 namespace irr
00011 {
00012 
00014 class IRandomizer : public virtual IReferenceCounted
00015 {
00016 public:
00018 
00019     virtual void reset(s32 value=0x0f0f0f0f) =0;
00020 
00022     virtual s32 rand() const =0;
00023 
00025     virtual f32 frand() const =0;
00026 
00028     virtual s32 randMax() const =0;
00029 };
00030 
00031 } // end namespace irr
00032 
00033 #endif