Base files added.

This commit is contained in:
2026-04-30 20:00:29 +03:30
parent cc237f6b31
commit 3e6af74041
21 changed files with 419 additions and 2 deletions
@@ -0,0 +1,35 @@
package org.project.entity.enemies;
import org.project.object.weapons.Weapon;
// TODO: UPDATE IMPLEMENTATION
public abstract class Enemy {
Weapon weapon;
private int hp;
private int mp;
public Enemy(int hp, int mp, Weapon weapon) {
this.hp = hp;
this.mp = mp;
this.weapon = weapon;
}
// TODO: (BONUS) UPDATE THE FORMULA OF TAKING DAMAGE
@Override
public void takeDamage(int damage) {
hp -= damage;
}
public int getHp() {
return hp;
}
public int getMp() {
return mp;
}
public Weapon getWeapon() {
return weapon;
}
}
@@ -0,0 +1,6 @@
package org.project.entity.enemies;
// TODO: UPDATE IMPLEMENTATION
public class Skeleton {
// TODO: DESIGN ENEMY'S WEAPON AND ARMOR AND IMPLEMENT THE CONSTRUCTOR
}