public EnemyGenerator(World world, long duration,int[] enemiesPool, long firstDelay){
        this.duration = duration;
        this.enemiesPool = enemiesPool;
        this.lastUpdate = System.currentTimeMillis() + firstDelay;
        this.r = new Random();
        this.world = world;
        this.indexEnemyArray = 0;
        
    }