Пример #1
0
 /// <summary>
 /// Instantiates an instance of the FadedBlock class from a reference block.
 /// </summary>
 /// <param name="block">The block to use as a reference</param>
 public FadedBlock(Block block)
 {
     this.block          = block;
     this.constructStyle = new FadedBlockImages(block);
     constructStyle.ConstructBlock();
     this.drawStyle = new DrawFromMultiImageArray(((FadedBlockImages)constructStyle).Images, block);
 } // end constructor method FadedBlock
Пример #2
0
 /// <summary>
 /// Instantiates an instance of the SolidBlock class from a reference block.
 /// </summary>
 /// <param name="block">The block to use as a reference</param>
 public SolidBlock(Block block)
 {
     this.block          = block;
     this.constructStyle = new SolidBlockImages(block);
     constructStyle.ConstructBlock();
     this.drawStyle = new DrawFrom2ImageArray(((SolidBlockImages)constructStyle).Images, block);
 } // end constructor method SolidBlock
Пример #3
0
 /// <summary>
 /// This method creates the block according to whatever the constructStyle is.
 /// </summary>
 public void ConstructBlock()
 {
     constructStyle.ConstructBlock();
 }