Class: Contest::RoundHistory
- Defined in:
- docs/6_Contest_03_Contest_Creature.rb
Overview
Class storing all information about a round a creature played
Constant Summary collapse
- APPEAL_HEART_VALUE =
Value of one heart in score points
20
Instance Attribute Summary collapse
-
#combo_executed ⇒ Boolean
readonly
Was a combo executed during the round?.
-
#move ⇒ Contest::Move
readonly
The Move used during the round.
-
#real_score ⇒ Integer
Real score, used in total score counting.
-
#score ⇒ Integer
The score obtained during the round.
Instance Method Summary collapse
-
#initialize(move, score, primary_judging: false, combo_executed: false) ⇒ RoundHistory
constructor
Create a new RoundHistory.
-
#modify_score(score)
Modify the score of the round.
-
#move_condition ⇒ Symbol
Get the condition of the move used during the round.
Constructor Details
#initialize(move, score, primary_judging: false, combo_executed: false) ⇒ RoundHistory
Create a new RoundHistory
104 105 |
# File 'docs/6_Contest_03_Contest_Creature.rb', line 104 def initialize(move, score, primary_judging: false, combo_executed: false) end |
Instance Attribute Details
#combo_executed ⇒ Boolean (readonly)
Was a combo executed during the round?
96 97 98 |
# File 'docs/6_Contest_03_Contest_Creature.rb', line 96 def combo_executed @combo_executed end |
#move ⇒ Contest::Move (readonly)
The Move used during the round
87 88 89 |
# File 'docs/6_Contest_03_Contest_Creature.rb', line 87 def move @move end |
#real_score ⇒ Integer
Real score, used in total score counting.
93 94 95 |
# File 'docs/6_Contest_03_Contest_Creature.rb', line 93 def real_score @real_score end |
#score ⇒ Integer
The score obtained during the round
90 91 92 |
# File 'docs/6_Contest_03_Contest_Creature.rb', line 90 def score @score end |
Instance Method Details
#modify_score(score)
Modify the score of the round
112 113 |
# File 'docs/6_Contest_03_Contest_Creature.rb', line 112 def modify_score(score) end |
#move_condition ⇒ Symbol
Get the condition of the move used during the round
108 109 |
# File 'docs/6_Contest_03_Contest_Creature.rb', line 108 def move_condition end |