Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'master' of
https://github.uconn.edu/joh13010/2102-Group-Project-Spring-2017.git

Conflicts:
	bin/controller/Cashflow.class
	src/view/MainMenu.java
  • Loading branch information
Joe Hill committed Apr 23, 2017
2 parents 3ef3b3e + 454e127 commit 62350f3
Show file tree
Hide file tree
Showing 33 changed files with 307 additions and 270 deletions.
Binary file modified bin/controller/Cashflow.class
Binary file not shown.
Binary file modified bin/model/CardStack.class
Binary file not shown.
Binary file modified bin/model/CharityTile.class
Binary file not shown.
Binary file modified bin/model/ChildTile.class
Binary file not shown.
Binary file modified bin/model/DealTile.class
Binary file not shown.
Binary file modified bin/model/DoodadTile.class
Binary file not shown.
Binary file modified bin/model/FinancialStatement.class
Binary file not shown.
Binary file modified bin/model/GameBoard.class
Binary file not shown.
Binary file modified bin/model/PaydayTile.class
Binary file not shown.
Binary file modified bin/model/Player.class
Binary file not shown.
Binary file modified bin/model/Tile.class
Binary file not shown.
Binary file modified bin/model/TileCircularLinkedList$Node.class
Binary file not shown.
Binary file modified bin/model/TileCircularLinkedList.class
Binary file not shown.
Binary file modified bin/view/DealCardWindow$1.class
Binary file not shown.
Binary file modified bin/view/DealCardWindow$2.class
Binary file not shown.
Binary file modified bin/view/DealCardWindow$3$1.class
Binary file not shown.
Binary file modified bin/view/DealCardWindow$3$2.class
Binary file not shown.
Binary file modified bin/view/DealCardWindow$3.class
Binary file not shown.
Binary file modified bin/view/DealCardWindow$4$1.class
Binary file not shown.
Binary file modified bin/view/DealCardWindow$4$2.class
Binary file not shown.
Binary file modified bin/view/DealCardWindow$4.class
Binary file not shown.
Binary file modified bin/view/DealCardWindow.class
Binary file not shown.
Binary file modified bin/view/DoodadCardWindow$1.class
Binary file not shown.
Binary file modified bin/view/DoodadCardWindow$2.class
Binary file not shown.
Binary file modified bin/view/DoodadCardWindow.class
Binary file not shown.
Binary file modified bin/view/FSWindow.class
Binary file not shown.
Binary file modified bin/view/MainWindow$1.class
Binary file not shown.
Binary file modified bin/view/MainWindow.class
Binary file not shown.
17 changes: 14 additions & 3 deletions src/controller/Cashflow.java
Expand Up @@ -12,16 +12,27 @@ public class Cashflow
public GameboardWindow gameboard; public GameboardWindow gameboard;
public static int numPlayers; public static int numPlayers;



public static void main(String[] args)
{
go();
}


public static void go() public static void go()
{ {
System.out.println("Start game");
// Joe // Joe
// Initialize players (pick professions) // Initialize players (pick professions)
MainMenu mm = new MainMenu();
String[] names = mm.makeMainMenu();
ArrayList<Player> players = new ArrayList<Player>();
for(String name : names)
{
players.add(new Player(name));
}


// Initialize game board // Initialize game board
_board = new GameBoard(); _board = new GameBoard(players);

System.out.println("hello");
// Initialize GUI // Initialize GUI




Expand Down
2 changes: 1 addition & 1 deletion src/model/GameBoard.java
Expand Up @@ -37,7 +37,7 @@ public class GameBoard
private static Tile t24 = new DoodadTile("Doodad Tile", 23); private static Tile t24 = new DoodadTile("Doodad Tile", 23);




public GameBoard(Player... players) public GameBoard(ArrayList<Player> players)
{ {
_profs = new Professions(); _profs = new Professions();
_tiles = new TileCircularLinkedList(); _tiles = new TileCircularLinkedList();
Expand Down
24 changes: 22 additions & 2 deletions src/model/Player.java
Expand Up @@ -7,11 +7,14 @@ public class Player
private int _charityCount; //charity counter private int _charityCount; //charity counter
private int _downsizeCount; //down size counter private int _downsizeCount; //down size counter
private int _location;//refers to a tile number private int _location;//refers to a tile number
private String _name;
private boolean _hasWon; private boolean _hasWon;
private String _playerName;


public Player() public Player(String name)
{ {
Professions p = new Professions(); Professions p = new Professions();
_name = name;
_fs = new FinancialStatement(p.getProfession()); _fs = new FinancialStatement(p.getProfession());
_charityCount = 0; _charityCount = 0;
_downsizeCount = 0; _downsizeCount = 0;
Expand Down Expand Up @@ -80,7 +83,24 @@ public class Player
_downsizeCount--; _downsizeCount--;
} }


public void setPlayerName(String playerName)
{
_playerName = playerName;
}



public String getPlayerName()
{
return _playerName;
}


public String getName() {
return _name;
}


public void setName(String _name) {
this._name = _name;
}


} }
2 changes: 1 addition & 1 deletion src/model/Tile.java
Expand Up @@ -27,7 +27,7 @@ public class Tile


public void getLandedOn(Player p) {} public void getLandedOn(Player p) {}


public void addPlayers(Player... players) public void addPlayers(ArrayList<Player> players)
{ {
for(Player p : players) for(Player p : players)
{ {
Expand Down

0 comments on commit 62350f3

Please sign in to comment.