Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Kodu::ScoreChange Class Reference

#include <ScoreKeeper.h>


Detailed Description

Definition at line 21 of file ScoreKeeper.h.

List of all members.

Public Member Functions

 ScoreChange (KoduActionScore::ScoringType_t scoreOp, const std::string &kDesignator, unsigned int val)
 Constructor.
 ScoreChange (const ScoreChange &kChange)
 Copy constructor.
 ~ScoreChange ()
 Destructor.
ScoreChangeoperator= (const ScoreChange &kChange)
 Assignment operator.
Timestamp_t getTimestamp () const
bool operator> (const ScoreChange &)
 Overloaded greater than operator.
bool operator< (const ScoreChange &)
 Overloaded less than operator.
bool operator== (const ScoreChange &)
 Overloaded equal to operator.
bool operator!= (const ScoreChange &)
 Overloaded not equal to operator.

Public Attributes

KoduActionScore::ScoringType_t operationType
 The operation type (e.g. add, set, subtract).
std::string designator
 The score designator (color or score letter).
unsigned int value
 The value to set, substract, or add.

Private Attributes

Timestamp_t timeCreated
 The approximate time the score was created.

Friends

class ScoreKeeper

Constructor & Destructor Documentation

Kodu::ScoreChange::ScoreChange ( KoduActionScore::ScoringType_t  scoreOp,
const std::string &  kDesignator,
unsigned int  val 
)

Constructor.

Definition at line 24 of file ScoreKeeper.h.

Kodu::ScoreChange::ScoreChange ( const ScoreChange kChange  ) 

Copy constructor.

Definition at line 35 of file ScoreKeeper.h.

Kodu::ScoreChange::~ScoreChange (  ) 

Destructor.

Definition at line 43 of file ScoreKeeper.h.


Member Function Documentation

Timestamp_t Kodu::ScoreChange::getTimestamp (  )  const

Definition at line 5 of file ScoreKeeper.cc.

bool Kodu::ScoreChange::operator!= ( const ScoreChange rhs  ) 

Overloaded not equal to operator.

Definition at line 21 of file ScoreKeeper.cc.

bool Kodu::ScoreChange::operator< ( const ScoreChange rhs  ) 

Overloaded less than operator.

Definition at line 13 of file ScoreKeeper.cc.

ScoreChange& Kodu::ScoreChange::operator= ( const ScoreChange kChange  ) 

Assignment operator.

Definition at line 48 of file ScoreKeeper.h.

bool Kodu::ScoreChange::operator== ( const ScoreChange rhs  ) 

Overloaded equal to operator.

Definition at line 17 of file ScoreKeeper.cc.

bool Kodu::ScoreChange::operator> ( const ScoreChange rhs  ) 

Overloaded greater than operator.

Definition at line 9 of file ScoreKeeper.cc.


Friends And Related Function Documentation

friend class ScoreKeeper [friend]

Definition at line 73 of file ScoreKeeper.h.


Member Data Documentation

The score designator (color or score letter).

Definition at line 76 of file ScoreKeeper.h.

Referenced by Kodu::KoduWorld::applyGlobalScoreChanges(), and operator=().

The operation type (e.g. add, set, subtract).

Definition at line 75 of file ScoreKeeper.h.

Referenced by Kodu::KoduWorld::applyGlobalScoreChanges(), and operator=().

The approximate time the score was created.

Definition at line 80 of file ScoreKeeper.h.

Referenced by getTimestamp(), operator<(), operator=(), operator==(), operator>(), and ScoreChange().

The value to set, substract, or add.

Definition at line 77 of file ScoreKeeper.h.

Referenced by Kodu::KoduWorld::applyGlobalScoreChanges(), and operator=().


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