//-------------------------------------------------------------- //GENERATE BLACKHOLE SYSTEM //-------------------------------------------------------------- private void GenerateBlackHoleSystem(BlackHoleOnMap hole) { //Construct black hole name string tempName = ConstructName(); hole.Name = tempName; //End name construction //Generationg BlackHole System //Generating black hole BlackHole bh = new BlackHole(Content.Load<Texture2D>("BlackHoles/"+ blackHolesTextures[new Random().Next(0, blackHolesTextures.Length)]), CenterPoint, new Vector2(Scales.TwoTenth)); bh.Name = tempName; //End generating black hole BlackHoleSystem bhs = new BlackHoleSystem(bh); bhs.BackGround = CreateBackground("SystemBacks/" + systemBackTextures[new Random().Next(0, systemBackTextures.Length)], Scales.None, 255f); //End generating GeneratingAsteroids(bhs); hole.System = bhs; }
public BlackHoleSystem(BlackHole hole) { objects = new List<IDraw>(); objects.Add(hole); IsVisible = true; }