private void consumePotion(ZombieTime zTime) { board.setGridPositionOpen(this); isConsumed = true; int updateTime = zTime.getTime() - healthReplenished; zTime.setTime(updateTime); potionSound.Play(); }
public void setZTime(ZombieTime mytime) { zTime.setTime(mytime.getTime()); zTimeReset = new ZombieTime(board); zTimeReset.reset(); zTimeReset.setTime(mytime.getTime()); }