Skip to content

Commit

Permalink
Changes constructor for Hero to accept no params
Browse files Browse the repository at this point in the history
  • Loading branch information
aknobloch committed Nov 7, 2016
1 parent 75a9177 commit 0656a64
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions AnEndlessNight/src/main/CombatSystem/Hero.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,14 @@ public class Hero extends Character
private int defense;

/***
* Constructs a Hero based on the listed parameters.
* Constructs a Hero.
* A Hero starts with no equipped weapon or armor,
* 100 health, 1 strength
* and a defense value of zero.
*
* @param ID - Unique ID associated with this Hero
* @param health - Starting health of this Hero
* @param strength - Starting strength of Hero
* @param name - Human-readable name of this Hero
*/
public Hero(int health, int strength)
public Hero()
{
super(1, health, strength,"Steve");
super(1, 100, 1,"Hyuang");
statusConditions = new ArrayList<>();
equippedWeapon = null;
equippedArmor = null;
Expand Down

0 comments on commit 0656a64

Please sign in to comment.