Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Okay so I made a lot of commits today so heres a small summary:
-Changed the card classes a little.
-Added some card stack classes with randomize functionality.
-Added some empty classes like Player, Financial Statement, GameBoard
and Tile.
-Added some empty methods in the Cashflow class with some mediocre
pseudocode.
  • Loading branch information
Joe authored and Joe committed Mar 3, 2017
1 parent 7337e6f commit aa7fb94
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 3 deletions.
Binary file modified bin/controller/Cashflow.class
Binary file not shown.
35 changes: 34 additions & 1 deletion src/controller/Cashflow.java
Expand Up @@ -5,15 +5,48 @@ import model.*;

public class Cashflow
{


private GameBoard _board;
private Player[] _players;
private CardStack[] _cards;

public static void main(String[] args)
{
/*
* Just testing stuff in here for now. Main method will call the go() method when game is built
*/
MarketStack ms = new MarketStack();

int initialSize = ms.getSize();
for(int i=0; i<initialSize; i++)
{
int num = i+1;
System.out.println(num + ": " + ((MarketCard) ms.pop()).getDescription()); //Always going to need this cast when getting description unfortunately
}
}

public void go()
{
// Joe
// Initialize game board
// Initialize GUI
// Initialize players (pick professions)
// Initialize cards


/*
* Start game:
* calls play function that has a
* while loop that repeats until either a player wins or
* someone elects to quit
*/

}

public void play()
{

}


}
2 changes: 0 additions & 2 deletions src/model/DealCard.java
Expand Up @@ -8,8 +8,6 @@ public class DealCard extends Card
private int _mortgage;
private int _cashFlowChange;



public DealCard(String title, String description, int cost, int downPayment, int mortgage, int cashFlowChange)
{
super(title);
Expand Down
6 changes: 6 additions & 0 deletions src/model/FinacialStatement.java
@@ -0,0 +1,6 @@
package model;

public class FinacialStatement
{

}
8 changes: 8 additions & 0 deletions src/model/GameBoard.java
@@ -0,0 +1,8 @@
package model;

public class GameBoard
{
private Tile[] _gameTiles;

// This class should have an array of tiles that goes back to the beginning when it eaches the end
}
7 changes: 7 additions & 0 deletions src/model/Player.java
@@ -0,0 +1,7 @@
package model;

public class Player
{
private FinacialStatement _fs;

}
6 changes: 6 additions & 0 deletions src/model/Tile.java
@@ -0,0 +1,6 @@
package model;

public class Tile
{

}

0 comments on commit aa7fb94

Please sign in to comment.