@Override
    public void spawnEnemy(String enemyData) {
        if(!free()) {
            return;
        }
        int r = Application.get().getRNG().nextInt(7);
        GameActor a = Application.get().getLogic().createActor(enemyData);
        PhysicsComponent pc = (PhysicsComponent)a.getComponent("PhysicsComponent");
        pc.setLocation(x + 50 + r * 100, y - 50);
        pc.setAngleRad(MathUtil.getOppositeAngleRad(upAngle));
        pc.setTargetAngle(pc.getAngleRad());
        
        AIComponent aic = (AIComponent)a.getComponent("AIComponent");
        BaseAI ai = aic.getAI();
        if(ai instanceof EnemyBasicAI) {
            EnemyBasicAI ebai = (EnemyBasicAI)ai;
            ebai.setSector(ID);
        }
    }