Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Kodu::KoduActionScore Class Reference

Kodu Action Score (derived from Kodu Action). More...

#include <KoduActionScore.h>

Inheritance diagram for Kodu::KoduActionScore:

Detailed Description

Kodu Action Score (derived from Kodu Action).

Definition at line 27 of file KoduActionScore.h.

List of all members.

Public Types

enum  ScoringType_t { ST_SCORE = 0, ST_SET_SCORE, ST_SUBTRACT }

Public Member Functions

 KoduActionScore (ScoringType_t scoreOpType, const NumericGenerator &kNumericGen, const std::string &kDesignator, bool useOnce)
 Constructor.
 KoduActionScore (const KoduActionScore &kAction)
 Copy constructor.
 ~KoduActionScore ()
 Destructor.
KoduActionScoreoperator= (const KoduActionScore &kAction)
 Assignment operator.
ScoreChange getScoreChange ()
 Returns the score change.
virtual void reinitialize ()
 Used to reinitialize certain variables (e.g. when switching to another page).
virtual void printAttrs () const
 Prints the attributes of a particular instance.

Static Public Member Functions

static bool isSameTypeAs (const KoduPrimitive *)
 Tests if the primitive argument is the same as the calling class.

Private Attributes

ScoringType_t type
 States whether a score is incremented, decremented, or set.
NumericGenerator numericGen
 Generates a numeric value.
std::string designator
 The score designator.

Member Enumeration Documentation

Enumerator:
ST_SCORE 
ST_SET_SCORE 
ST_SUBTRACT 

Definition at line 29 of file KoduActionScore.h.


Constructor & Destructor Documentation

Kodu::KoduActionScore::KoduActionScore ( ScoringType_t  scoreOpType,
const NumericGenerator kNumericGen,
const std::string &  kDesignator,
bool  useOnce 
)

Constructor.

Definition at line 36 of file KoduActionScore.h.

Kodu::KoduActionScore::KoduActionScore ( const KoduActionScore kAction  ) 

Copy constructor.

Definition at line 45 of file KoduActionScore.h.

Kodu::KoduActionScore::~KoduActionScore (  ) 

Destructor.

Definition at line 54 of file KoduActionScore.h.


Member Function Documentation

ScoreChange Kodu::KoduActionScore::getScoreChange (  ) 

Returns the score change.

Definition at line 6 of file KoduActionScore.cc.

bool Kodu::KoduActionScore::isSameTypeAs ( const KoduPrimitive kPrimitive  )  [static]

Tests if the primitive argument is the same as the calling class.

Reimplemented from Kodu::KoduPrimitive.

Definition at line 10 of file KoduActionScore.cc.

KoduActionScore& Kodu::KoduActionScore::operator= ( const KoduActionScore kAction  ) 

Assignment operator.

Definition at line 59 of file KoduActionScore.h.

void Kodu::KoduActionScore::printAttrs (  )  const [virtual]

Prints the attributes of a particular instance.

Reimplemented from Kodu::KoduAction.

Definition at line 18 of file KoduActionScore.cc.

void Kodu::KoduActionScore::reinitialize (  )  [virtual]

Used to reinitialize certain variables (e.g. when switching to another page).

Reimplemented from Kodu::KoduAction.

Definition at line 14 of file KoduActionScore.cc.


Member Data Documentation

std::string Kodu::KoduActionScore::designator [private]

The score designator.

Definition at line 85 of file KoduActionScore.h.

Referenced by getScoreChange(), operator=(), and printAttrs().

Generates a numeric value.

Definition at line 84 of file KoduActionScore.h.

Referenced by getScoreChange(), operator=(), and printAttrs().

States whether a score is incremented, decremented, or set.

Definition at line 83 of file KoduActionScore.h.

Referenced by getScoreChange(), operator=(), and printAttrs().


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