Kata Tournament Runner  0.1.00
 All Classes Namespaces Functions Variables Enumerations Groups Pages
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 
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_
virtual uint8_t next_round()=0
Move to next round.
virtual float get_minimum_score_of_round(uint8_t round) const =0
Return the minimum score of the given round.
virtual float get_maximum_score_of_round(uint8_t round) const =0
Return the maximum score of the given round.
virtual float get_minimum_score_of_current_round() const =0
Return the minimum score of the current round.
virtual float get_overall_score_of_current_round() const =0
Return the overall score of the current round.
virtual float get_maximum_score_of_current_round() const =0
Return the maximum score of the current round.
virtual void add_deduction(float deduction)=0
Add a deduction, which is subtracted from the overall score.
The IKataPerformer interface.
Definition: kata_performer_interface.h:15
virtual void add_kata_score(float score)=0
Add a kata score for the current round.
virtual float get_overall_score_of_round(uint8_t round) const =0
Return the overall score of the given round.