Example #1
0
        static public Galaxia Crear(Generadores.Generador generador)
        {
            Galaxia gal = new Galaxia();

            gal.generador = generador;

            gal.Inicializar();

            return(gal);
        }
Example #2
0
        public Sector(Galaxia galaxia, SectorID sectorID, Faccion faccion)
        {
            this.galaxia  = galaxia;
            this.sectorID = sectorID;
            this.faccion  = faccion;

            tamanio = new Vector2(TamanioSector, TamanioSector);
            centro  = new Vector2(SectorID.X * TamanioSector, SectorID.Y * TamanioSector);

            CrearEstrellas();
        }