Module: Hlockey::Game::Weather::Weatherable
- Includes:
- SelfDescribable
- Defined in:
- lib/hlockey/game/weather/weatherable.rb
Overview
Module with needed methods for weathers, that every weather includes All methods starting with “on” represent game events weathers may respond to
Instance Method Summary collapse
- #initialize(game) ⇒ Object
- #on_action ⇒ Object
- #on_game_end ⇒ Object
- #on_game_start ⇒ Object
- #on_goal(scoring_team) ⇒ Object
- #on_period_end ⇒ Object
Methods included from SelfDescribable
Instance Method Details
#initialize(game) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/hlockey/game/weather/weatherable.rb', line 13 def initialize(game) @game = game @home = @game.home @away = @game.away @prng = @game.prng end |
#on_action ⇒ Object
26 |
# File 'lib/hlockey/game/weather/weatherable.rb', line 26 def on_action() end |
#on_game_end ⇒ Object
22 |
# File 'lib/hlockey/game/weather/weatherable.rb', line 22 def on_game_end() end |
#on_game_start ⇒ Object
20 |
# File 'lib/hlockey/game/weather/weatherable.rb', line 20 def on_game_start() end |
#on_goal(scoring_team) ⇒ Object
28 |
# File 'lib/hlockey/game/weather/weatherable.rb', line 28 def on_goal(scoring_team) end |
#on_period_end ⇒ Object
24 |
# File 'lib/hlockey/game/weather/weatherable.rb', line 24 def on_period_end() end |