Kata Tournament Runner  0.1.00
 All Classes Namespaces Functions Variables Enumerations Groups Pages
Public Member Functions | List of all members
TournamentRunner::IKataPerformer Class Referenceabstract

The IKataPerformer interface. More...

#include <kata_performer_interface.h>

Inheritance diagram for TournamentRunner::IKataPerformer:
Inheritance graph
[legend]

Public Member Functions

 IKataPerformer (const IKataPerformer &)=default
 
 IKataPerformer (IKataPerformer &&)=default
 
IKataPerformer & operator= (const IKataPerformer &)=default
 
IKataPerformer & operator= (IKataPerformer &&)=default
 
virtual void add_kata_score (float score)=0
 Add a kata score for the current round. More...
 
virtual void add_deduction (float deduction)=0
 Add a deduction, which is subtracted from the overall score. More...
 
virtual uint8_t next_round ()=0
 Move to next round. More...
 
virtual float get_maximum_score_of_round (uint8_t round) const =0
 Return the maximum score of the given round. More...
 
virtual float get_minimum_score_of_round (uint8_t round) const =0
 Return the minimum score of the given round. More...
 
virtual float get_overall_score_of_round (uint8_t round) const =0
 Return the overall score of the given round. More...
 
virtual float get_maximum_score_of_current_round () const =0
 Return the maximum score of the current round. More...
 
virtual float get_minimum_score_of_current_round () const =0
 Return the minimum score of the current round. More...
 
virtual float get_overall_score_of_current_round () const =0
 Return the overall score of the current round. More...
 

Detailed Description

The IKataPerformer interface.

Defines the interface of a karateka participating at a kata tournament

Member Function Documentation

virtual void TournamentRunner::IKataPerformer::add_deduction ( float  deduction)
pure virtual

Add a deduction, which is subtracted from the overall score.

Parameters
deductionDeduction value

Implemented in TournamentRunner::Karateka.

virtual void TournamentRunner::IKataPerformer::add_kata_score ( float  score)
pure virtual

Add a kata score for the current round.

Parameters
scoreThe score given

Implemented in TournamentRunner::Karateka.

virtual float TournamentRunner::IKataPerformer::get_maximum_score_of_current_round ( ) const
pure virtual

Return the maximum score of the current round.

Returns
the maximum score of the current round

Implemented in TournamentRunner::Karateka.

virtual float TournamentRunner::IKataPerformer::get_maximum_score_of_round ( uint8_t  round) const
pure virtual

Return the maximum score of the given round.

Parameters
roundThe round we want the maximum score from
Returns
the maximum score

Implemented in TournamentRunner::Karateka.

virtual float TournamentRunner::IKataPerformer::get_minimum_score_of_current_round ( ) const
pure virtual

Return the minimum score of the current round.

Returns
the minimum score of the current round

Implemented in TournamentRunner::Karateka.

virtual float TournamentRunner::IKataPerformer::get_minimum_score_of_round ( uint8_t  round) const
pure virtual

Return the minimum score of the given round.

Parameters
roundThe round we want the minimum score from
Returns
the minimum score

Implemented in TournamentRunner::Karateka.

virtual float TournamentRunner::IKataPerformer::get_overall_score_of_current_round ( ) const
pure virtual

Return the overall score of the current round.

Returns
the overall score of the current round

Implemented in TournamentRunner::Karateka.

virtual float TournamentRunner::IKataPerformer::get_overall_score_of_round ( uint8_t  round) const
pure virtual

Return the overall score of the given round.

Parameters
roundThe round we want the overall score from
Returns
the overall score

Implemented in TournamentRunner::Karateka.

Here is the caller graph for this function:

virtual uint8_t TournamentRunner::IKataPerformer::next_round ( )
pure virtual

Move to next round.

Returns
the round number of the current round (after update)

Implemented in TournamentRunner::Karateka.


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