"""
A simple class definition for demonstration purposes.  CS21 students are *NOT*
required to understand the syntax at this point; this definition is merely used
in class to demonstrate object orientation.

Author: Zachary Palmer
Date: 2015-09-29
"""

class Hero:
  def __init__(self, name):
    self.name = name
    self.hp = 100
    self.weapon = "Nothing"
  def equip(self, weaponName):
    self.weapon = weaponName
  def takeDamage(self, damage):
    self.hp -= damage
  def heal(self,hp):
    self.hp += hp
  def __repr__(self):
    return "Hero: %s (%d/100 HP) (Using: %s)" % (self.name, self.hp, self.weapon)

