Class: PFM::Hall_of_Fame
Overview
Class describing the Hall_of_Fame logic
Instance Attribute Summary collapse
-
#game_state ⇒ PFM::GameState
Get the game state responsive of the whole game state.
-
#player_victory ⇒ Array
Array containing every victory of the player.
Instance Method Summary collapse
-
#initialize(game_state = PFM.game_state) ⇒ Hall_of_Fame
constructor
Create a new hall of fame.
-
#register_victory(mode = :league)
Register a win in the Pokemon League for the player.
Constructor Details
#initialize(game_state = PFM.game_state) ⇒ Hall_of_Fame
Create a new hall of fame
12 13 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 12 def initialize(game_state = PFM.game_state) end |
Instance Attribute Details
#game_state ⇒ PFM::GameState
Get the game state responsive of the whole game state
9 10 11 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 9 def game_state @game_state end |
#player_victory ⇒ Array
Array containing every victory of the player
6 7 8 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 6 def player_victory @player_victory end |
Instance Method Details
#register_victory(mode = :league)
Register a win in the Pokemon League for the player
16 17 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 16 def register_victory(mode = :league) end |