Module: Hlockey::Game::Weather::Weatherable

Includes:
SelfDescribable
Included in:
Audacity, Chicken, Incline, Stars, Sunset, Waves
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

Methods included from SelfDescribable

#to_s

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_actionObject



26
# File 'lib/hlockey/game/weather/weatherable.rb', line 26

def on_action() end

#on_game_endObject



22
# File 'lib/hlockey/game/weather/weatherable.rb', line 22

def on_game_end() end

#on_game_startObject



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_endObject



24
# File 'lib/hlockey/game/weather/weatherable.rb', line 24

def on_period_end() end