debug Entity.java
This commit is contained in:
@@ -1,21 +1,90 @@
|
|||||||
package org.project.entity;
|
package org.project.entity;
|
||||||
|
|
||||||
|
import org.project.abilities.SpecialAbility;
|
||||||
|
import org.project.item.armors.Armor;
|
||||||
|
import org.project.item.weapons.Weapon;
|
||||||
|
import org.project.managers.StatusEffectManager;
|
||||||
|
import org.project.weaponEffects.StatusEffect;
|
||||||
|
|
||||||
public interface Entity {
|
public interface Entity {
|
||||||
void attack(Entity target);
|
|
||||||
|
// =========================================================
|
||||||
|
// IDENTITY
|
||||||
|
// =========================================================
|
||||||
|
|
||||||
|
String getName();
|
||||||
|
|
||||||
|
// =========================================================
|
||||||
|
// STATS
|
||||||
|
// =========================================================
|
||||||
|
|
||||||
|
int getHp();
|
||||||
|
int getMp();
|
||||||
|
int getMaxHP();
|
||||||
|
int getMaxMP();
|
||||||
|
void useMana(int amount);
|
||||||
|
|
||||||
|
int getBaseDamage();
|
||||||
|
|
||||||
|
// =========================================================
|
||||||
|
// EQUIPMENT
|
||||||
|
// =========================================================
|
||||||
|
|
||||||
|
Weapon getWeapon();
|
||||||
|
Armor getArmor();
|
||||||
|
|
||||||
|
void setWeapon(Weapon weapon);
|
||||||
|
void setArmor(Armor armor);
|
||||||
|
|
||||||
|
Armor getPersonalArmor();
|
||||||
|
|
||||||
|
// =========================================================
|
||||||
|
// ABILITIES
|
||||||
|
// =========================================================
|
||||||
|
|
||||||
|
SpecialAbility getSpacialAbility();
|
||||||
|
|
||||||
|
void addAbilityEffect(SpecialAbility ability, Entity target);
|
||||||
|
void tickAbilityEffects(Entity target);
|
||||||
|
|
||||||
|
// =========================================================
|
||||||
|
// STATUS EFFECTS
|
||||||
|
// =========================================================
|
||||||
|
|
||||||
|
void heal(int amount);
|
||||||
|
void freeze();
|
||||||
|
void stun();
|
||||||
|
void addStatusEffect(StatusEffect effect);
|
||||||
|
void tickStatusEffects();
|
||||||
|
StatusEffectManager getEffectManager();
|
||||||
|
|
||||||
|
// // =========================================================
|
||||||
|
// // RESOURCE MANAGEMENT
|
||||||
|
// // =========================================================
|
||||||
|
//
|
||||||
|
// void useMana(int amount);
|
||||||
|
|
||||||
|
// =========================================================
|
||||||
|
// COMBAT
|
||||||
|
// =========================================================
|
||||||
|
|
||||||
|
void takeDamage(int amount);
|
||||||
|
|
||||||
|
// =========================================================
|
||||||
|
// STATES
|
||||||
|
// =========================================================
|
||||||
|
|
||||||
void defend();
|
void defend();
|
||||||
|
boolean isDefending();
|
||||||
|
boolean isFrozen();
|
||||||
|
boolean isStunned();
|
||||||
|
void resetTurnState();
|
||||||
|
|
||||||
void heal(int health);
|
|
||||||
|
|
||||||
void fillMana(int mana);
|
// =========================================================
|
||||||
|
// INTERNAL SETTERS
|
||||||
|
// =========================================================
|
||||||
|
|
||||||
void takeDamage(int damage);
|
void setHp(int value);
|
||||||
|
void setMp(int value);
|
||||||
int getMaxHP();
|
|
||||||
|
|
||||||
int getMaxMP();
|
|
||||||
|
|
||||||
/*
|
|
||||||
TODO: ADD OTHER REQUIRED AND BONUS METHODS
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user