Class: MasmaGame::BluePlayer

Inherits:
Player
  • Object
show all
Defined in:
lib/masma_game/blue_player.rb

Instance Attribute Summary

Attributes inherited from Player

#health, #name

Instance Method Summary collapse

Methods inherited from Player

#<=>, #each_found_hoard, from_csv, #initialize, #points, #score, #to_s

Methods included from Playable

#blam, #strong?, #w00t

Constructor Details

This class inherits a constructor from MasmaGame::Player

Instance Method Details

#found_hoard(hoard) ⇒ Object



6
7
8
9
# File 'lib/masma_game/blue_player.rb', line 6

def found_hoard(hoard)
  damaged_hoard = Hoard.new(hoard.name, hoard.points / 2.0)
  super(damaged_hoard)
end