コード例 #1
0
ファイル: DefaultWorld.cs プロジェクト: ccjjharmon/GameOfLife
        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();
        }
コード例 #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();
        }