Ejemplo n.º 1
0
 /// <summary>
 /// Checks if the Strings passed are valid
 /// </summary>
 /// <param name="pc">PC String to check</param>
 /// <param name="inventory">Inventory string to check</param>
 /// <param name="catalogue">Item Catalogue string to check</param>
 /// <returns>If all the strings are valid</returns>
 public static bool IsValidPCModel(String pc, String inventory, String catalogue)
 {
     return(PlayerCharacter.IsValidPC(pc) && Inventory.IsValidInventory(inventory) && ItemCatalogue.IsValidItemCatalogue(catalogue));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor for a PCModel with strings from file
 /// </summary>
 /// <param name="pc">PC string</param>
 /// <param name="inventory">Inventory string</param>
 /// <param name="catalogue">Item catalogue string</param>
 public PCModel(String pc, String inventory, String catalogue)
 {
     currentPC        = new PlayerCharacter(pc);
     currentInventory = new Inventory(inventory);
     itemCatalogue    = new ItemCatalogue(catalogue);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Checks if a string is a valid item catalogue
 /// </summary>
 /// <param name="catalogue">String to check</param>
 /// <returns>If the string is a valid item catalogue</returns>
 public static bool IsValidItemCatalogue(String catalogue)
 {
     return(ItemCatalogue.IsValidItemCatalogue(catalogue));
 }