public void update(long elapsedTime) {
		// select the correct Animation
		Animation newAnim = anim;
		newAnim = alive;
		if (state == STATE_DYING) {
			newAnim = dead;
		}
		// update the Animation
		if (anim != newAnim) {
			anim = newAnim;
			anim.start();
		}
		else {
			anim.update(elapsedTime);
		}

		// update to "dead" state
		stateTime += elapsedTime;
		if (state == STATE_DYING && stateTime >= DIE_TIME) {
			setState(STATE_DEAD);
		}
		
		if (stateTime % FIRE_COOLDOWN <= 8 && canFire) {
			setFire();
		}
		
	}