Advanced Strategic Command
Public Member Functions | List of all members
RandomGenerator Class Reference

#include <gamemap.h>

Public Member Functions

 RandomGenerator (int seedValue)
 ~RandomGenerator ()
unsigned int getPercentage ()
unsigned int getRandomValue (int upperLimit)
unsigned int getRandomValue (int lowerLimit, int upperLimit)

Detailed Description

Definition at line 49 of file gamemap.h.

Constructor & Destructor Documentation

RandomGenerator::RandomGenerator ( int  seedValue)

Definition at line 44 of file gamemap.cpp.

RandomGenerator::~RandomGenerator ( )

Definition at line 48 of file gamemap.cpp.

Member Function Documentation

unsigned int RandomGenerator::getPercentage ( )

Definition at line 53 of file gamemap.cpp.

References getRandomValue().

unsigned int RandomGenerator::getRandomValue ( int  upperLimit)

Definition at line 57 of file gamemap.cpp.

Referenced by getPercentage().

unsigned int RandomGenerator::getRandomValue ( int  lowerLimit,
int  upperLimit 

Definition at line 61 of file gamemap.cpp.

The documentation for this class was generated from the following files: