Added to IHpTile
This commit is contained in:
parent
1ef0ea0be2
commit
3c43f66dd6
1 changed files with 18 additions and 0 deletions
|
@ -18,4 +18,22 @@ public interface IHpTile
|
|||
* considered dead
|
||||
*/
|
||||
public boolean isAlive();
|
||||
|
||||
/**
|
||||
* Current hp of the tile
|
||||
*/
|
||||
public int hp();
|
||||
|
||||
/**
|
||||
* Sets the tiles hp
|
||||
*
|
||||
* @param i - amount
|
||||
* @param increase - increase instead of replace
|
||||
*/
|
||||
public void setHp(int i, boolean increase);
|
||||
|
||||
/**
|
||||
* Max hp of the object
|
||||
*/
|
||||
public int getMaxHealth();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue