Armor - JayhawkZombie/EECS581Project GitHub Wiki

#Armor

##Derived From Item

##Dependencies None

##Member Variables

  • Damage m_defense
    • This will be summed together in HumanActor to determine the defense of the character
  • bool m_legs
    • True if the Armor occupies your legs
  • bool m_torso
    • True if the Armor occupies your torso
  • bool m_arms
    • True if the Armor occupies your arms/hands
  • bool m_head
    • True if the Armor occupies your Head
  • bool m_ring
    • True if the Armor occupies a ring slot

##Methods

  • Num()
  • returns the number of Armor types

##Old Version In the Old Version, all of the items were handled in the same class, so there are a number of differences between the old and the new versions