Exemplo n.º 1
0
 /// <summary>
 /// Retuns the singleton instance of the BrewersBenchSystem, and creates a new one if the instance
 /// does not yet exist.
 /// </summary>
 /// <returns></returns>
 public static BrewersBenchSystem GetBrewersBenchInstance()
 {
     if (instance == null)
     {
         instance = new BrewersBenchSystem();
     }
     return(instance);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Standard Constructor for an AddBrewBaseCommand.
 /// </summary>
 /// <param name="system"></param>
 /// <param name="b"></param>
 public AddBrewBaseCommand(BrewersBenchSystem system, Base b) : base(system)
 {
     bbase = b;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Standard Constructor for an AddBrewVesselCommand
 /// </summary>
 /// <param name="system"></param>
 /// <param name="v"></param>
 public AddBrewVesselCommand(BrewersBenchSystem system, Vessel v) : base(system)
 {
     vessel = v;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Standard Constructor for a Brewer Command.
 /// </summary>
 /// <param name="system"></param>
 public BrewerCommand(BrewersBenchSystem system) : base(system)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// Standard Constructor for the Stock Potion Command.
 /// </summary>
 /// <param name="system"></param>
 /// <param name="p"></param>
 public StockPotionCommand(BrewersBenchSystem system, Potion p) : base(system)
 {
     potion = p;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Public command constructor.
 /// </summary>
 /// <param name="system"></param>
 public BenchCommand(BrewersBenchSystem system)
 {
     BBSystem = system;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Standard Constructor for the Stock Ingredient Command.
 /// </summary>
 /// <param name="system"></param>
 /// <param name="i"></param>
 public StockIngredientCommand(BrewersBenchSystem system, Ingredient i) : base(system)
 {
     ingredient = i;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Standard Constructor for a BrewAndStockPotionCommand.
 /// </summary>
 /// <param name="system"></param>
 public BrewAndStockPotionCommand(BrewersBenchSystem system) : base(system)
 {
 }
Exemplo n.º 9
0
 /// <summary>
 /// Standard Brewer Constructor.
 /// </summary>
 public BenchUser()
 {
     system         = BrewersBenchSystem.GetBrewersBenchInstance();
     currentCommand = 0;
     totalUsers++;
 }