Skip to content

Commit

Permalink
added some skeleton classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavin Li committed Feb 2, 2015
1 parent 2ba157f commit dc693ce
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions MerchantRPGCSE2102/src/game/Player.java
Original file line number Diff line number Diff line change
@@ -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
}
8 changes: 8 additions & 0 deletions MerchantRPGCSE2102/src/tests/TestPlayer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package tests;

import game.Player;

public class TestPlayer
{

}

0 comments on commit dc693ce

Please sign in to comment.