Beispiel #1
0
 /// <summary>
 /// Retrieves the single instance of the PotionBuilder singleton, and generates a new one if the instance does not yet exist.
 /// </summary>
 /// <returns></returns>
 public static PotionBuilder GetPotionBuilderInstance()
 {
     if (instance == null)
     {
         instance = new PotionBuilder();
     }
     return(instance);
 }
Beispiel #2
0
 /// <summary>
 /// Retrieves the single instance of the PotionBuilder singleton, after it has been cleaned and reset.
 /// </summary>
 /// <returns></returns>
 public static PotionBuilder GetCleanPotionBuilderInstance()
 {
     instance = new PotionBuilder();
     return(instance);
 }
Beispiel #3
0
 /// <summary>
 /// Cleans and resets the Potion Builder instance.
 /// </summary>
 public void cleanPotion()
 {
     pb = PotionBuilder.GetCleanPotionBuilderInstance();
 }
Beispiel #4
0
 /// <summary>
 /// Default Bench Brewing Constructor. Initializes a new clean Potion Builder.
 /// </summary>
 private BenchBrewing()
 {
     pb = PotionBuilder.GetCleanPotionBuilderInstance();
 }