mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-13 22:59:02 +00:00
Merge pull request #84 from mlaga97/npc-combat
Allow ability to damage NPCs with Laser. Fixes #34
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user