From a5cc88e5ec65da3c7637efd62fb4cc3aa5ec8f54 Mon Sep 17 00:00:00 2001 From: Vikram Date: Mon, 18 Feb 2019 19:47:42 -0700 Subject: [PATCH] the shop now uses the player class as a parent class. --- .idea/misc.xml | 2 +- .idea/workspace.xml | 96 ++++++++++-------- src/TaipanShop.java | 234 +++++++++++++++++++++----------------------- 3 files changed, 170 insertions(+), 162 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 070de0b..8466a13 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,7 +3,7 @@ - + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 8594e1d..048bdc6 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,9 +2,9 @@ + - - + - + - - + + - - - - - - - - + - - + + @@ -47,8 +40,12 @@ - - + + + + + + @@ -65,7 +62,17 @@ couldn could runFromShips + name + bank + player.getMoney() += num * + opiumHeld + + player.getName() + player.getBank() + player.setMoney(player.getMoney() + num*) + player.getOpiumHeld() +