static void populate_enemies(){ int i; for(i = 1; i < MAX_OBJECTS; i++){ int object_id = rand() % 1; create_enemy(&gobj_list[i], enemy_kind[object_id]); } }
void Logic::run_enemy(){ create_enemy(time); vector<EnemyPlane*>::iterator iter = enemy.begin(); while(iter != enemy.end()){ (*iter)->move(me->pos,sta.dt); iter++; } run_enemy_bullets(); }