added player stats and re-ordered some classes

This commit is contained in:
2025-11-30 01:53:28 +01:00
parent 5879aec9a2
commit 298e6c624e
14 changed files with 69 additions and 40 deletions

View File

@@ -23,7 +23,7 @@ public class Entity {
public Rectangle attackArea = new Rectangle(0, 0, 0, 0);
public int solidAreaDefaultX, solidAreaDefaultY;
public boolean collision;
String[] dialogue = new String[20];
protected String[] dialogue = new String[20];
// STATE
public int worldX, worldY;
@@ -44,12 +44,26 @@ public class Entity {
int dyingCount;
int hpBarCounter;
// ATTRIBUTES
// CHARACTER ATTRIBUTES
public EntityType type;
public String name;
public int speed;
public int maxLife;
public int life;
public int level;
public int strength;
public int dexterity;
public int attack;
public int defense;
public int exp;
public int nextLevelExp;
public int coins;
public Entity currentWeapon;
public Entity currentShield;
// ITEM ATTRIBUTES
public int attackValue;
public int defenseValue;
public Entity(GamePanel panel) {
this.panel = panel;