Kata Tournament Runner
0.1.00
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Groups
Pages
include
tournament_runner
kata_performer_interface.h
1
#ifndef TOURNAMENT_RUNNER_KATA_PERFORMER_INTERFACE_H_
2
#define TOURNAMENT_RUNNER_KATA_PERFORMER_INTERFACE_H_
3
4
#include <string>
5
#include <cstdint>
6
7
8
namespace
TournamentRunner
9
{
10
15
class
IKataPerformer
16
{
17
public
:
18
19
20
IKataPerformer
() =
default
;
21
IKataPerformer
(
const
IKataPerformer
&) =
default
;
22
IKataPerformer
(
IKataPerformer
&&) =
default
;
23
IKataPerformer
& operator= (
const
IKataPerformer
&) =
default
;
24
IKataPerformer
& operator= (
IKataPerformer
&&) =
default
;
25
virtual
~
IKataPerformer
() =
default
;
30
virtual
void
add_kata_score
(
float
score) = 0;
31
36
virtual
void
add_deduction
(
float
deduction) = 0;
37
42
virtual
uint8_t
next_round
() = 0;
43
49
virtual
float
get_maximum_score_of_round
(uint8_t round)
const
= 0;
50
56
virtual
float
get_minimum_score_of_round
(uint8_t round)
const
= 0;
57
63
virtual
float
get_overall_score_of_round
(uint8_t round)
const
= 0;
64
69
virtual
float
get_maximum_score_of_current_round
()
const
= 0;
70
75
virtual
float
get_minimum_score_of_current_round
()
const
= 0;
76
81
virtual
float
get_overall_score_of_current_round
()
const
= 0;
82
83
};
84
85
}
//namespace TournamentRunner
86
87
#endif // TOURNAMENT_RUNNER_KATA_PERFORMER_INTERFACE_H_
TournamentRunner::IKataPerformer::next_round
virtual uint8_t next_round()=0
Move to next round.
TournamentRunner::IKataPerformer::get_minimum_score_of_round
virtual float get_minimum_score_of_round(uint8_t round) const =0
Return the minimum score of the given round.
TournamentRunner::IKataPerformer::get_maximum_score_of_round
virtual float get_maximum_score_of_round(uint8_t round) const =0
Return the maximum score of the given round.
TournamentRunner::IKataPerformer::get_minimum_score_of_current_round
virtual float get_minimum_score_of_current_round() const =0
Return the minimum score of the current round.
TournamentRunner::IKataPerformer::get_overall_score_of_current_round
virtual float get_overall_score_of_current_round() const =0
Return the overall score of the current round.
TournamentRunner::IKataPerformer::get_maximum_score_of_current_round
virtual float get_maximum_score_of_current_round() const =0
Return the maximum score of the current round.
TournamentRunner::IKataPerformer::add_deduction
virtual void add_deduction(float deduction)=0
Add a deduction, which is subtracted from the overall score.
TournamentRunner::IKataPerformer
The IKataPerformer interface.
Definition:
kata_performer_interface.h:15
TournamentRunner::IKataPerformer::add_kata_score
virtual void add_kata_score(float score)=0
Add a kata score for the current round.
TournamentRunner::IKataPerformer::get_overall_score_of_round
virtual float get_overall_score_of_round(uint8_t round) const =0
Return the overall score of the given round.
Generated on Mon Mar 23 2015 00:04:19 for Kata Tournament Runner by
1.8.6