public void tick() {
        if (!isLive()) {
            return;
        }

        if (weapon != null) {
            weapon.tick();
        }

        if (dir == Direction.LEFT) {
            setX(getX() + (-speed));
        } else
        if (dir == Direction.RIGHT) {
            setX(getX() + speed);
        }
    }