public void update(double time) {
		switch (enemyState) {
		case MOVING:
			updateMovement(time);
			break;
		case SHOOTING:
			break;
		case SEARCHING:
			updateSearch(time);
			break;
		}
		if (Collision.canEnemySeePlayer(this)) {
			enterSightMode();
			lastKnownPlayerLoc = Game.getWorld().getPlayer().location;
		} else {
			if (enemyState == EnemyState.SHOOTING) {
				enemyState = EnemyState.SEARCHING;
				createPathToPlayer();
			}
		}
		if (Collision.isEnemyIntersectingBullet(this)) {
			destroyed = true;
		}
	}