Jimcpp 2.1.0
Jimcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IRandomizer.hpp
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in jimcpp/jimcpp.hpp
4
5#ifndef JPP_I_RANDOMIZER_HPP_INCLUDED
6#define JPP_I_RANDOMIZER_HPP_INCLUDED
7
8#include <jimcpp/core/engine/IReferenceCounted.hpp>
9
10namespace jpp
11{
12
14class IRandomizer : public virtual IReferenceCounted
15{
16public:
18
19 virtual void reset(s32 value=0x0f0f0f0f) =0;
20
22 virtual s32 rand() const =0;
23
25 virtual f32 frand() const =0;
26
28 virtual s32 randMax() const =0;
29};
30
31} // end namespace jpp
32
33#endif
Interface for generating random numbers.
Definition IRandomizer.hpp:15
virtual void reset(s32 value=0x0f0f0f0f)=0
resets the randomizer
virtual s32 randMax() const =0
get maximum number generated by rand()
virtual s32 rand() const =0
generates a pseudo random number in the range 0..randMax()
virtual f32 frand() const =0
generates a pseudo random number in the range 0..1
Base class of most objects of the Jimcpp Engine.
Definition IReferenceCounted.hpp:46
As of Jimcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72
float f32
32 bit floating point variable.
Definition irrTypes.hpp:110

Jimcpp    @cppfx.xyz

K