class Hero

The Hero is the main character in any story. Works great for the player’s avatar and can have armour.

Public Class Methods

new(armour, weapon) click to toggle source

Initializes a new Hero. Sets health to 100. See Creature#new for the parameters armour and weapon

# File lib/battlefield.rb, line 80
def initialize(armour, weapon); @health, @armour, weapon = 100, armour, weapon; end