Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Friday again...
  • Loading branch information
Joe Hill committed Mar 24, 2017
1 parent cc4e2b3 commit c472de3
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 20 deletions.
Binary file modified bin/controller/Cashflow.class
Binary file not shown.
24 changes: 23 additions & 1 deletion src/controller/Cashflow.java
Expand Up @@ -45,7 +45,29 @@ public class Cashflow

public void play()
{

while(!isWinner())
{
// Check down sized (check if player's downsize counter is 0)
// Check charity (Check if charity counter is 0)
// Roll dice
// Move player
// Get card from tile ()
//
}
}

public boolean isWinner()
{
for(Player p : _players)
{
if(p.hasWon())
{
return true;
break;
}
else
return false;
}
}


Expand Down
28 changes: 24 additions & 4 deletions src/model/FinancialStatement.java
Expand Up @@ -11,6 +11,29 @@ public class FinancialStatement
private double liabilities;
private double income;

public FinancialStatement(Profession p)
{
salary = p.getSalary();

}

public void setChildExp(int i) // One fo these for each of the little line items that actually change
{
//childExp = i;
update();
}


private void update()
{
//expenses = asdf +asdf_A+sdf+ASDf
//income = blah+ blah
//cashflow = bluh + bluh


}


Profession p = new Profession("Teacher", 3300, 500, 500, 100, 100, 200, 700, 0, 0,
200, 400, 50000, 12000, 5000, 4000);

Expand Down Expand Up @@ -39,10 +62,7 @@ public class FinancialStatement
income = p.getSalary();
return income;
}
public void FinancialStatement()
{

}

public void display()
{

Expand Down
4 changes: 4 additions & 0 deletions src/model/GameBoard.java
Expand Up @@ -4,5 +4,9 @@ public class GameBoard
{
private Tile[] _gameTiles;





// This class should have an array of tiles that goes back to the beginning when it reaches the end
}
30 changes: 15 additions & 15 deletions src/model/MarketStack.java
Expand Up @@ -45,18 +45,18 @@ public class MarketStack extends CardStack
"expense", false, 1000 ,"");

//stock MarketCard - no value necessary
private static MarketCard Stock1 = new MarketCard("Stock - MYT4U Electronics Co.",
"MYT4U takes a gamble on new home entertainment tech. Will it hit big or be the next Beta-Max? MarketCardholder Rolls 1 Die. Die = 1-3, STOCK SPLITS! Everyone who owns MYT4U DOUBLES their number of shares. Die 4-6, STOCK REVERSE SPLITS! Everyone who owns MYT4U loses half their shares.",
"stock",true,0, "MYT4U");
private static MarketCard Stock2 = new MarketCard("Stock - GRO4US Fund",
"The market is in flux and there will be monumental market swings over the next few months. How will mutual funds fair in this time of change? MarketCardholder Rolls 1 Die. Die = 1-3, STOCK SPLITS! Everyone who owns GRO4US DOUBLES their number of shares. Die 4-6, STOCK REVERSE SPLITS! Everyone who owns GRO4US loses half their shares.",
"stock",true,0, "GRO4US");
private static MarketCard Stock3 = new MarketCard("Stock - ON2U Entertainment Co.",
"Studio backs fresh director for its summer blockbuster. Groundbreaking production could be too ambitious. MarketCardholder Rolls 1 Die. Die = 1-3, STOCK SPLITS! Everyone who owns ON2U DOUBLES their number of shares. Die 4-6, STOCK REVERSE SPLITS! Everyone who owns ON2U loses half their shares.",
"stock",true,0, "ON2U");
private static MarketCard Stock4 = new MarketCard("Stock - OK4U Drug Co.",
"OK4U begins trial on possible life-saving drug. Side effects are untested. Could change the world... if it works. MarketCardholder Rolls 1 Die. Die = 1-3, STOCK SPLITS! Everyone who owns OK4U DOUBLES their number of shares. Die 4-6, STOCK REVERSE SPLITS! Everyone who owns OK4U loses half their shares.",
"stock",true,0,"OK4U");
//private static MarketCard Stock1 = new MarketCard("Stock - MYT4U Electronics Co.",
// "MYT4U takes a gamble on new home entertainment tech. Will it hit big or be the next Beta-Max? MarketCardholder Rolls 1 Die. Die = 1-3, STOCK SPLITS! Everyone who owns MYT4U DOUBLES their number of shares. Die 4-6, STOCK REVERSE SPLITS! Everyone who owns MYT4U loses half their shares.",
// "stock",true,0, "MYT4U");
//private static MarketCard Stock2 = new MarketCard("Stock - GRO4US Fund",
// "The market is in flux and there will be monumental market swings over the next few months. How will mutual funds fair in this time of change? MarketCardholder Rolls 1 Die. Die = 1-3, STOCK SPLITS! Everyone who owns GRO4US DOUBLES their number of shares. Die 4-6, STOCK REVERSE SPLITS! Everyone who owns GRO4US loses half their shares.",
// "stock",true,0, "GRO4US");
//private static MarketCard Stock3 = new MarketCard("Stock - ON2U Entertainment Co.",
// "Studio backs fresh director for its summer blockbuster. Groundbreaking production could be too ambitious. MarketCardholder Rolls 1 Die. Die = 1-3, STOCK SPLITS! Everyone who owns ON2U DOUBLES their number of shares. Die 4-6, STOCK REVERSE SPLITS! Everyone who owns ON2U loses half their shares.",
// "stock",true,0, "ON2U");
//private static MarketCard Stock4 = new MarketCard("Stock - OK4U Drug Co.",
// "OK4U begins trial on possible life-saving drug. Side effects are untested. Could change the world... if it works. MarketCardholder Rolls 1 Die. Die = 1-3, STOCK SPLITS! Everyone who owns OK4U DOUBLES their number of shares. Die 4-6, STOCK REVERSE SPLITS! Everyone who owns OK4U loses half their shares.",
// "stock",true,0,"OK4U");

//repercent - how much percentage selling your property would yield you (aka if it's current cost + 10%, you'd yield 110% of the original cost in the sale minus what you owe
private static MarketCard REPercent1 = new MarketCard("House Buyer - 3BR/2BA",
Expand Down Expand Up @@ -93,7 +93,7 @@ public class MarketStack extends CardStack
"refixed",true,15000,"3Br2Ba");
private static MarketCard REFixed2 = new MarketCard("House Buyer - 3BR/2BA",
"Buyer searching for 3Br/2Ba house. Offers your original cost plus $10,000. Everyone may sell any number of properties at this price. If you sell, pay off the related mortgage and give up the cash flow on this property.",
"refixed",true,1000,"3Br2Ba");
"refixed",true,10000,"3Br2Ba");
private static MarketCard REFixed3 = new MarketCard("House Buyer - 3BR/2BA",
"Buyer searching for 3Br/2Ba house. Offers your original cost plus $20,000. Everyone may sell any number of properties at this price. If you sell, pay off the related mortgage and give up the cash flow on this property.",
"refixed",true,20000,"3Br2Ba");
Expand Down Expand Up @@ -145,9 +145,9 @@ public class MarketStack extends CardStack
public MarketStack()
{
MarketCard[] marketCardArray = {Profit1, Profit2,
Gold1, Gold2, Gold3, Gold4,
//Gold1, Gold2, Gold3, Gold4,
Expense1, Expense2, Expense3, Expense4, Expense5,
Stock1, Stock2, Stock3, Stock4,
//Stock1, Stock2, Stock3, Stock4,
REPercent1, REPercent2, REPercent3, REPercent4, REPercent5, REPercent6, REPercent7, REPercent8, REPercent9,
REFixed1, REFixed2, REFixed3, REFixed4, REFixed5, REFixed6, REFixed7, REFixed8, REFixed9, REFixed10, REFixed11,
REHOffer1, REHOffer2,
Expand Down
2 changes: 2 additions & 0 deletions src/model/Player.java
Expand Up @@ -4,4 +4,6 @@ public class Player
{
private FinancialStatement _fs;



}
8 changes: 8 additions & 0 deletions src/model/Tile.java
Expand Up @@ -2,5 +2,13 @@ package model;

public class Tile
{
private String _type;

public Tile(String type)
{
_type = type;
}



}

0 comments on commit c472de3

Please sign in to comment.