Merge pull request #84 from mlaga97/npc-combat

Allow ability to damage NPCs with Laser. Fixes #34
This commit is contained in:
Simon Fortier
2018-01-01 11:07:04 -05:00
committed by GitHub
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);
}