diff --git a/MerchantRPGCSE2102/src/game/Player.java b/MerchantRPGCSE2102/src/game/Player.java new file mode 100644 index 0000000..d38f960 --- /dev/null +++ b/MerchantRPGCSE2102/src/game/Player.java @@ -0,0 +1,19 @@ +package game; + +public class Player +{ + private String _name; + private int _playerCash; + private Item[] _playerInventory; + + //constructor + public Player(String playerName, int startingCash, int startingInventory) + { + _name = playerName; + _playerCash = startingCash; + _playerInventory = new Item[startingInventory]; + } + + //Buy method, allows player to gain new items + //deducts cash based on the price of item +} diff --git a/MerchantRPGCSE2102/src/tests/TestPlayer.java b/MerchantRPGCSE2102/src/tests/TestPlayer.java new file mode 100644 index 0000000..68e8dea --- /dev/null +++ b/MerchantRPGCSE2102/src/tests/TestPlayer.java @@ -0,0 +1,8 @@ +package tests; + +import game.Player; + +public class TestPlayer +{ + +}