Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Kodu::NumericGenerator Class Reference

#include <KoduGenerators.h>


Detailed Description

Definition at line 77 of file KoduGenerators.h.

List of all members.

Public Member Functions

 NumericGenerator (float constantVal, float moduloDivisorVal)
 Constructor.
 NumericGenerator (const NumericGenerator &kGenerator)
 Copy constructor.
virtual ~NumericGenerator ()
 Destructor.
NumericGeneratoroperator= (const NumericGenerator &kGenerator)
 Assignment operator.
virtual float getNumericValue ()
 Returns a constant or random value.
void printAttrs () const
 Prints info about the attributes.
void setNumericValues (float, float)
 Sets the constant and upper bound values.

Private Attributes

float constant
 The constant value that is added to modulo operation's result.
float moduloDivisor
 The divisor in the modulo operation.

Constructor & Destructor Documentation

Kodu::NumericGenerator::NumericGenerator ( float  constantVal,
float  moduloDivisorVal 
)

Constructor.

Definition at line 80 of file KoduGenerators.h.

Kodu::NumericGenerator::NumericGenerator ( const NumericGenerator kGenerator  ) 

Copy constructor.

Definition at line 88 of file KoduGenerators.h.

virtual Kodu::NumericGenerator::~NumericGenerator (  )  [virtual]

Destructor.

Definition at line 96 of file KoduGenerators.h.


Member Function Documentation

NumericGenerator& Kodu::NumericGenerator::operator= ( const NumericGenerator kGenerator  ) 

Assignment operator.

Definition at line 101 of file KoduGenerators.h.

void Kodu::NumericGenerator::printAttrs (  )  const

Prints info about the attributes.

Definition at line 50 of file KoduGenerators.cc.

Referenced by Kodu::KoduConditionTimer::printAttrs(), Kodu::KoduConditionScored::printAttrs(), and Kodu::KoduActionScore::printAttrs().

void Kodu::NumericGenerator::setNumericValues ( float  constantVal,
float  upperBoundVal 
)

Sets the constant and upper bound values.

Definition at line 57 of file KoduGenerators.cc.

Referenced by Kodu::KoduActionMotion::KoduActionMotion(), and Kodu::Parser::KodeCreator::numericGenParser().


Member Data Documentation

The constant value that is added to modulo operation's result.

Definition at line 120 of file KoduGenerators.h.

Referenced by getNumericValue(), operator=(), printAttrs(), and setNumericValues().

The divisor in the modulo operation.

Definition at line 121 of file KoduGenerators.h.

Referenced by getNumericValue(), operator=(), printAttrs(), and setNumericValues().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:23 2016 by Doxygen 1.6.3