Package parents
Class Entity
java.lang.Object
parents.Entity
- Direct Known Subclasses:
Player
Entity Class
- Version:
- 1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
Entity Name -
maxHealth
protected int maxHealthMax Health of the Entity -
health
protected int healthHealth of the Entity -
focus
protected int focusFocus of the Entity -
money
protected int moneyEntity's Money -
strength
protected double strengthEntity's Strength
-
-
Constructor Details
-
Entity
public Entity()Entity constructor. Doesn't write anything. -
Entity
Entity constructor.- Parameters:
name- The name of the EntitymaxHealth- Entity's Max Health (Will be Starting Health too)focus- Entity's Focusmoney- Entity's Moneystrength- Entity's Strength
-
-
Method Details
-
takeDamage
public void takeDamage(int force) -
die
public void die() -
gainAttack
public void gainAttack(int i)
-