Allow NPCs to be damaged and killed

This commit is contained in:
Luc Lagarde
2017-12-31 18:26:44 -06:00
parent b21e33601e
commit b31c187ad5
4 changed files with 115 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
package net.simon987.server.game;
/**
* Objects that can be attacked or healed
*/
public interface Attackable {
void setHealRate(int hp);
int getHp();
void setHp(int hp);
int getMaxHp();
void setMaxHp(int hp);
void heal(int amount);
void damage(int amount);
}