YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
RandomHelper.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_RANDOMHELPER_HPP
2
# define YAPOG_RANDOMHELPER_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/System/IntTypes.hpp
"
6
7
namespace
yap
8
{
9
class
YAPOG_LIB
RandomHelper
10
{
11
DISALLOW_COPY
(
RandomHelper
);
12
13
public
:
14
15
static
void
Init (
uint
seed);
16
17
static
int
GetNext (
const
int
& min,
const
int
& max);
18
static
float
GetNext (
const
float
& min,
const
float
& max);
19
static
double
GetNext (
const
double
& min,
const
double
& max);
20
static
bool
Percentage (
const
float
& percentage);
21
22
private
:
23
24
static
int
GetNext ();
25
26
RandomHelper
();
27
~
RandomHelper
();
28
};
29
}
// namespace yap
30
31
#endif // YAPOG_RANDOMHELPER_HPP
YAPOG
include
YAPOG
System
RandomHelper.hpp
Generated on Mon Sep 17 2012 22:24:24 for YAPOG by
1.8.1.1