Exemple #1
0
 /// <summary>
 /// Converts Platinum Pieces to Electrum Pieces
 /// </summary>
 /// <param name="pp">the source PlatinumPiece object to be converted</param>
 /// <returns>the new ElectrumPiece object, containing an equivalent value of the source PlatinumPiece object</returns>
 public static ElectrumPiece ToElectrumPieces(this PlatinumPiece pp)
 {
     return(new ElectrumPiece(pp.Count * 20));
 }
Exemple #2
0
 /// <summary>
 /// Converts Platinum Pieces to Copper Pieces
 /// </summary>
 /// <param name="pp">the source PlatinumPiece object to be converted</param>
 /// <returns>the new CopperPiece object, containing an equivalent value of the source PlatinumPiece object</returns>
 public static CopperPiece ToCopperPieces(this PlatinumPiece pp)
 {
     return(new CopperPiece(pp.Count * 1000));
 }
Exemple #3
0
 /// <summary>
 /// Converts Platinum Pieces to Silver Pieces
 /// </summary>
 /// <param name="pp">the source PlatinumPiece object to be converted</param>
 /// <returns>the new SilverPiece object, containing an equivalent value of the source PlatinumPiece object</returns>
 public static SilverPiece ToSilverPieces(this PlatinumPiece pp)
 {
     return(new SilverPiece(pp.Count * 100));
 }
Exemple #4
0
 //Down to Gold
 /// <summary>
 /// Converts Platinum Pieces to Gold Pieces
 /// </summary>
 /// <param name="pp">the source PlatinumPiece object to be converted</param>
 /// <returns>the new GoldPiece object, containing an equivalent value of the source PlatinumPiece object</returns>
 public static GoldPiece ToGoldPieces(this PlatinumPiece pp)
 {
     return(new GoldPiece(pp.Count * 10));
 }