コード例 #1
0
 public void printBackpack()
 {
     /*Console.WriteLine(" "+name+", you own "+numItems+" Weapons:");
      * for (int x = 0; x < numItems; x++)
      * {
      *  Console.WriteLine(" "+backpack[x].weaponName);
      * }
      * Console.WriteLine();*/
     bp.printBackpack();
 }
コード例 #2
0
 public void printCharacter()
 {
     //prints player and backpack attributed
     Console.WriteLine("Name:" + name + "\nMoney:" + money);
     bp.printBackpack();
 }