Esempio n. 1
0
        public DefaultWorld(Graphics graphics, int square_size, int width, int height, string world_processor_type)
        {
            this.graphics = graphics;
            this.square_size = square_size;
            this.width = width;
            this.height = height;

            processor = (WorldProcessor)Activator.CreateInstance(Type.GetType("GameOfLifeWinForms.core." + world_processor_type), width, height, graphics, square_size);
            processor.setup_map();
        }
Esempio n. 2
0
        public DefaultWorld(Graphics graphics, int square_size, int width, int height, string world_processor_type)
        {
            this.graphics    = graphics;
            this.square_size = square_size;
            this.width       = width;
            this.height      = height;

            processor = (WorldProcessor)Activator.CreateInstance(Type.GetType("GameOfLifeWinForms.core." + world_processor_type), width, height, graphics, square_size);
            processor.setup_map();
        }