/// <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
/// <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
/// <summary> /// This method creates the block according to whatever the constructStyle is. /// </summary> public void ConstructBlock() { constructStyle.ConstructBlock(); }