Package parents

Class Entity

java.lang.Object
parents.Entity
Direct Known Subclasses:
Player

public class Entity extends Object
Entity Class
Version:
1.0
  • Field Details

    • name

      protected String name
      Entity Name
    • maxHealth

      protected int maxHealth
      Max Health of the Entity
    • health

      protected int health
      Health of the Entity
    • focus

      protected int focus
      Focus of the Entity
    • money

      protected int money
      Entity's Money
    • strength

      protected double strength
      Entity's Strength
  • Constructor Details

    • Entity

      public Entity()
      Entity constructor. Doesn't write anything.
    • Entity

      public Entity(String name, int maxHealth, int focus, int money, int strength)
      Entity constructor.
      Parameters:
      name - The name of the Entity
      maxHealth - Entity's Max Health (Will be Starting Health too)
      focus - Entity's Focus
      money - Entity's Money
      strength - Entity's Strength
  • Method Details

    • takeDamage

      public void takeDamage(int force)
    • die

      public void die()
    • gainAttack

      public void gainAttack(int i)