Pyro higlevel API
Public Types | Public Member Functions | Static Public Member Functions | List of all members
os::Random Class Reference

Public Types

enum  {
  STRING_ALL,
  STRING_ALPHA,
  STRING_ALPHANUMERIC
}
 

Public Member Functions

 Random (bool bSeedRandom=true)
 
os::font_properties AsFont (bool bAntiAlias=true, bool bShearing=false, bool bRotation=false)
 
os::DateTime AsDateTime ()
 
os::String AsString (uint nType=STRING_ALPHANUMERIC, int nWidth=-1)
 
os::Color32 AsColor (bool bAlpha=false)
 
os::Point AsPoint (os::Point start, os::Point end)
 
os::Rect AsRect (os::Rect start, os::Rect end)
 
os::IPoint AsIPoint (os::IPoint start, os::IPoint end)
 
os::IRect AsIRect (os::IRect start, os::IRect end)
 
float AsFloat (float rangeStart=0.0, float rangeEnd=FLT_MAX)
 
double AsDouble ()
 
int AsInt (int rangeStart=0, int rangeEnd=RAND_MAX)
 

Static Public Member Functions

static void SeedRandom (int time=-1)
 

Member Enumeration Documentation

anonymous enum
Enumerator
STRING_ALL 
STRING_ALPHA 
STRING_ALPHANUMERIC 

Constructor & Destructor Documentation

os::Random::Random ( bool  bSeedRandom = true)

Member Function Documentation

os::Color32 os::Random::AsColor ( bool  bAlpha = false)
os::DateTime os::Random::AsDateTime ( )
double os::Random::AsDouble ( )
float os::Random::AsFloat ( float  rangeStart = 0.0,
float  rangeEnd = FLT_MAX 
)
os::font_properties os::Random::AsFont ( bool  bAntiAlias = true,
bool  bShearing = false,
bool  bRotation = false 
)
int os::Random::AsInt ( int  rangeStart = 0,
int  rangeEnd = RAND_MAX 
)
os::IPoint os::Random::AsIPoint ( os::IPoint  start,
os::IPoint  end 
)
os::IRect os::Random::AsIRect ( os::IRect  start,
os::IRect  end 
)
os::Point os::Random::AsPoint ( os::Point  start,
os::Point  end 
)
os::Rect os::Random::AsRect ( os::Rect  start,
os::Rect  end 
)
os::String os::Random::AsString ( uint  nType = STRING_ALPHANUMERIC,
int  nWidth = -1 
)
static void os::Random::SeedRandom ( int  time = -1)
static