diff --git a/.classpath b/.classpath
new file mode 100644
index 0000000..b9e6658
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/.project b/.project
index eb79e8f..2fd13b9 100644
--- a/.project
+++ b/.project
@@ -5,7 +5,13 @@
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+ org.eclipse.jdt.core.javanature
diff --git a/bin/.gitignore b/bin/.gitignore
new file mode 100644
index 0000000..66b02ab
--- /dev/null
+++ b/bin/.gitignore
@@ -0,0 +1,3 @@
+/model/
+/view/
+/controller/
diff --git a/bin/controller/Cashflow.class b/bin/controller/Cashflow.class
index 80f4f93..bf36558 100644
Binary files a/bin/controller/Cashflow.class and b/bin/controller/Cashflow.class differ
diff --git a/bin/model/Profession.class b/bin/model/Profession.class
index af4b4ba..8fdeb61 100644
Binary files a/bin/model/Profession.class and b/bin/model/Profession.class differ
diff --git a/src/Main/Profession.java b/src/Main/Profession.java
deleted file mode 100644
index 4e8a2e7..0000000
--- a/src/Main/Profession.java
+++ /dev/null
@@ -1,124 +0,0 @@
-
-public class Profession
-{
- private String _name;
- private int _salary;
- private int _taxes;
- private int _mortgagePay;
- private int _schoolLoanPay;
- private int _carLoanPay;
- private int _creditCardPay;
- private int _otherExp;
- private int _bankLoanPay;
- private int _childExp;
- private int _childExpPer;
- private int _savings;
- private int _mortgage;
- private int _schoolLoans;
- private int _carLoans;
- private int _creditCardDebt;
-
- public Profession(String name, int salary, int taxes, int mortgagePay, int schoolLoanPay,
- int carLoanPay, int creditCardPay, int otherExp, int bankLoanPay, int childExp, int childExpPer,
- int savings, int mortgage, int schoolLoans, int carLoans, int creditCardDebt)
- {
- _name = name;
- _salary = salary;
- _taxes = taxes;
- _mortgagePay = mortgagePay;
- _schoolLoanPay = schoolLoanPay;
- _carLoanPay = carLoanPay;
- _creditCardPay = creditCardPay;
- _otherExp = otherExp;
- _bankLoanPay = bankLoanPay;
- _childExp = childExp;
- _childExpPer = childExpPer;
- _savings = savings;
- _mortgage = mortgage;
- _schoolLoans = schoolLoans;
- _carLoans = carLoans;
- _creditCardDebt = creditCardDebt;
-
- }
-
- public String getName()
- {
- return _name;
- }
-
- public int getSalary()
- {
- return _salary;
- }
-
- public int getTaxes()
- {
- return _taxes;
- }
-
- public int getMortgagePay()
- {
- return _mortgagePay;
- }
-
- public int getSchoolLoanPay()
- {
- return _schoolLoanPay;
- }
-
- public int getCarLoanPay()
- {
- return _carLoanPay;
- }
-
- public int getCreditCardPay()
- {
- return _creditCardPay;
- }
-
- public int getOtherExp()
- {
- return _otherExp;
- }
-
- public int getBankLoanPay()
- {
- return _bankLoanPay;
- }
-
- public int getChildExp()
- {
- return _childExp;
- }
-
- public int getChildExpPer()
- {
- return _childExpPer;
- }
-
- public int getSavings()
- {
- return _savings;
- }
-
- public int getMortgage()
- {
- return _mortgage;
- }
-
- public int getSchoolLoans()
- {
- return _schoolLoans;
- }
-
- public int getCarLoans()
- {
- return _carLoans;
- }
-
- public int getCreditCardDebt()
- {
- return _creditCardDebt;
- }
-
-}
diff --git a/src/controller/Cashflow.java b/src/controller/Cashflow.java
index bb9db74..08160b7 100644
--- a/src/controller/Cashflow.java
+++ b/src/controller/Cashflow.java
@@ -1,5 +1,52 @@
package controller;
-public class Cashflow {
+import view.*;
+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
+{
+ private static final long serialVersionUID = 1L;
+ private int _size;
+
+ public CardStack()
+ {
+ super();
+ _size = 0;
+ }
+
+ @Override
+ public Card push(Card c)
+ {
+ _size++;
+ return super.push(c);
+ }
+
+ @Override
+ public Card pop()
+ {
+ _size--;
+ return super.pop();
+ }
+
+ public Card pickCard()
+ {
+ return this.pop();
+ }
+
+ public int getSize()
+ {
+ return _size;
+ }
+
+ // Randomizes the stack with the cards in the array argument
+ public void randomizeCards(Card[] cardArray)
+ {
+ //CardStack cardStack = new CardStack();
+ ArrayList cardList = new ArrayList();
+ Random r = new Random();
+
+ // Add all array contents to list
+ for(Card c : cardArray)
+ {
+ cardList.add(c);
+ }
+
+ // Pushes a card at a random index in the card list
+ int initialLength = cardList.size();
+ for(int i=0; i < initialLength; i++)
+ {
+ push(cardList.remove(r.nextInt(cardList.size())));
+ }
+
+ }
+
+}
diff --git a/src/model/DealCard.java b/src/model/DealCard.java
new file mode 100644
index 0000000..fa027ec
--- /dev/null
+++ b/src/model/DealCard.java
@@ -0,0 +1,45 @@
+package model;
+
+public class DealCard extends Card
+{
+ private String _description;
+ private int _cost;
+ private int _downPayment;
+ private int _mortgage;
+ private int _cashFlowChange;
+
+ public DealCard(String title, String description, int cost, int downPayment, int mortgage, int cashFlowChange)
+ {
+ super(title);
+ _cost = cost;
+ _downPayment = downPayment;
+ _mortgage = mortgage;
+ _cashFlowChange = cashFlowChange;
+ }
+
+ public String getDescription()
+ {
+ return _description;
+ }
+
+ public int getCost()
+ {
+ return _cost;
+ }
+
+ public int getDownPayment()
+ {
+ return _downPayment;
+ }
+
+ public int getMortgage()
+ {
+ return _mortgage;
+ }
+
+ public int getCashFlowChange()
+ {
+ return _cashFlowChange;
+ }
+
+}
diff --git a/src/model/Die.java b/src/model/Die.java
index 8ea6be0..77ce069 100644
--- a/src/model/Die.java
+++ b/src/model/Die.java
@@ -1,7 +1,6 @@
package model;
import java.util.Random;
-
public class Die {
/*
* Die will probably have to go in each individual turn, so that it can pull charity status
diff --git a/src/model/DoodadCard.java b/src/model/DoodadCard.java
new file mode 100644
index 0000000..39e0564
--- /dev/null
+++ b/src/model/DoodadCard.java
@@ -0,0 +1,17 @@
+package model;
+
+public class DoodadCard extends Card
+{
+ private int _value;
+
+ public DoodadCard(String title, int value)
+ {
+ super(title);
+ _value = value;
+ }
+
+ public int getValue()
+ {
+ return _value;
+ }
+}
diff --git a/src/model/DoodadStack.java b/src/model/DoodadStack.java
new file mode 100644
index 0000000..cd36519
--- /dev/null
+++ b/src/model/DoodadStack.java
@@ -0,0 +1,69 @@
+package model;
+
+import java.util.*;
+
+public class DoodadStack extends CardStack
+{
+ private static DoodadCard D01 = new DoodadCard("New Tennis Racket", 200);
+ private static DoodadCard D02 = new DoodadCard("Food Processor",200);
+ private static DoodadCard D03 = new DoodadCard("Birthday Party for You Child", 500); //if you have a child
+ private static DoodadCard D04 = new DoodadCard("Next-Gen Game Console", 600);
+ private static DoodadCard D05 = new DoodadCard("First Car for Child (Take out a loan if you must)", 5000); //if you have a child
+ private static DoodadCard D06 = new DoodadCard("Jet Ski (Take out a loan if you must)", 3000);
+ private static DoodadCard D07 = new DoodadCard("New Tailored Suit", 1000);
+ private static DoodadCard D08 = new DoodadCard("New Rims for Your DoodadCard (Take outa loan if you must)", 2000);
+ private static DoodadCard D09 = new DoodadCard("New Car Stereo", 700);
+ private static DoodadCard D10 = new DoodadCard("Go to Casino", 800);
+ private static DoodadCard D11 = new DoodadCard("New Easy Chair", 500);
+ private static DoodadCard D12 = new DoodadCard("Cappuccino Machine", 300);
+ private static DoodadCard D13 = new DoodadCard("Pay for Lunch with Friends", 200);
+ private static DoodadCard D14 = new DoodadCard("New Computuer (Take out a loan if you must)", 1800);
+ private static DoodadCard D15 = new DoodadCard("Golf Club Membership (Take out a loan if you must)", 2000);
+ private static DoodadCard D16 = new DoodadCard("Child Needs Braces (Take out a loan if you must)", 4000);
+ //if you have a child
+ private static DoodadCard D17 = new DoodadCard("Concert Tickets", 200);
+ private static DoodadCard D18 = new DoodadCard("New Watch", 200);
+ private static DoodadCard D19 = new DoodadCard("New Tires", 600);
+ private static DoodadCard D20 = new DoodadCard("Replace Car Air Conditioner", 700);
+ private static DoodadCard D21 = new DoodadCard("Get Newest Phone", 300);
+ private static DoodadCard D22 = new DoodadCard("New Sunglasses", 200);
+ private static DoodadCard D23 = new DoodadCard("New Gym Clothes", 300);
+ private static DoodadCard D24 = new DoodadCard("New Clothes", 1000);
+ private static DoodadCard D25 = new DoodadCard("Private Tutoring for Your Child", 500);
+ //if you have a child
+ private static DoodadCard D26 = new DoodadCard("Big Screen TV (Take out a loan if you must)", 2500);
+ private static DoodadCard D27 = new DoodadCard("Date Night: Dinner, Concert & Dessert", 500);
+ private static DoodadCard D28 = new DoodadCard("Take a Trip to Wine Country", 1000);
+ private static DoodadCard D29 = new DoodadCard("Buy Local Artist's Painting", 800);
+ private static DoodadCard D30 = new DoodadCard("High School Reunion", 500);
+ private static DoodadCard D31 = new DoodadCard("Build a Home Gym (Take out a loan if you must)", 3000);
+ private static DoodadCard D32 = new DoodadCard("New Golf Clubs", 800);
+ private static DoodadCard D33 = new DoodadCard("Costume Jewlry", 400);
+ private static DoodadCard D34 = new DoodadCard("Fishing Boat (Take out a loan if you must)", 5000);
+ private static DoodadCard D35 = new DoodadCard("New Bowling Ball", 100);
+ private static DoodadCard D36 = new DoodadCard("Repaint Your House", 600);
+ private static DoodadCard D37 = new DoodadCard("New Sound System", 1500);
+ private static DoodadCard D38 = new DoodadCard("Visit the Dentist (Maybe get a shiny gold tooth!)", 700);
+ private static DoodadCard D39 = new DoodadCard("Help Pay for Child's Wedding", 2000);
+ private static DoodadCard D40 = new DoodadCard("Family Vacation (Take out a loan if you must)", 2500);
+ private static DoodadCard D41 = new DoodadCard("Remodel Kitchen (Take out a loan if you must)", 7500);
+ private static DoodadCard D42 = new DoodadCard("Season Tickets", 1500);
+
+ // Constructor just calls makes this stack a randomized stack with Doodad cards
+ public DoodadStack()
+ {
+ DoodadCard[] cardArray = {D01, D02, D03, D04, D05, D06, D07, D08, D09, D10,
+ D11, D12, D13, D14, D15, D16, D17, D18, D19, D20,
+ D21, D22, D23, D24, D25, D26, D27, D28, D29, D30,
+ D31, D32, D33, D34, D35, D36, D37, D38, D39, D40, D41, D42};
+
+ super.randomizeCards(cardArray);
+ }
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/src/model/FinacialStatement.java b/src/model/FinacialStatement.java
new file mode 100644
index 0000000..f34997c
--- /dev/null
+++ b/src/model/FinacialStatement.java
@@ -0,0 +1,6 @@
+package model;
+
+public class FinacialStatement
+{
+
+}
diff --git a/src/model/GameBoard.java b/src/model/GameBoard.java
new file mode 100644
index 0000000..85eade4
--- /dev/null
+++ b/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
+}
diff --git a/src/model/MarketCard.java b/src/model/MarketCard.java
new file mode 100644
index 0000000..b8eb2e2
--- /dev/null
+++ b/src/model/MarketCard.java
@@ -0,0 +1,40 @@
+package model;
+
+public class MarketCard extends Card
+{
+ private String _description;
+ private String _type;
+ private boolean _affectAll;
+ private int _value;
+
+ public MarketCard(String title, String description, String type, boolean affectAll, int value)
+ {
+ super(title);
+ _description = description;
+ _type = type;
+ _affectAll = affectAll;
+ _value = value;
+ }
+
+ public String getDescription()
+ {
+ return _description;
+ }
+
+ public String getType()
+ {
+ return _type;
+ }
+
+ public boolean doesAffectAll()
+ {
+ return _affectAll;
+ }
+
+ public int getValue()
+ {
+ return _value;
+ }
+
+
+}
diff --git a/src/model/MarketStack.java b/src/model/MarketStack.java
new file mode 100644
index 0000000..aad4cfb
--- /dev/null
+++ b/src/model/MarketStack.java
@@ -0,0 +1,173 @@
+package model;
+/*
+ * hi im very forgetful so my code is usually full of comments when its not finished sorry
+ *
+ */
+public class MarketStack extends CardStack
+{
+ //Not sure how we're working in the descriptions as it's a more graphical concept but for now I'm going to type them out
+ private static MarketCard Profit1 = new MarketCard("Small Business Boom!",
+ "The downtown economy has exploded! EVERYONE is affected! ALL businesses with a cash flow of $1000 or less have their cash flow increased by $250",
+ "profit", true, 250);
+ private static MarketCard Profit2 = new MarketCard("New Management System",
+ "A new management system creates new efficiencies and lowers costs. Only the person who drew this MarketCard is affected.",
+ "profit", false, 400);
+
+ //gold MarketCard - value is $ per coin
+ private static MarketCard Gold1 = new MarketCard("Price of Gold Soars",
+ "The Central Bank is printing money in an attempt to boost the economy causing massive inflation. The price of gold skyrockets. Buyer offers $2000 for each gold coin. Everyone may sell any number of coins at this price.",
+ "gold", true, 2000);
+ private static MarketCard Gold2 = new MarketCard("Collector wants Gold Coins",
+ "Wealthy collector is looking for gold coins. Cash offer of $1000 for each coin. Everyone may sell any number of coins at this price.",
+ "gold", true, 1000);
+ private static MarketCard Gold3 = new MarketCard("Price of Gold Soars",
+ "Rioting Overseas. Oil prices threatened. Price of gold skyrockets. Buyer offers $1000 cash for each gold coin. Everyone may sell any number of coins at this price.",
+ "gold", true, 1000);
+ private static MarketCard Gold4 = new MarketCard("Collector wants Gold Coins",
+ "Wealthy collector is looking for gold coins. Cash offer of $500 for each coin. Everyone may sell any number of coins at this price.",
+ "gold", true, 500);
+
+ //expense MarketCard - quite obviously the value is how much this expense costs
+ private static MarketCard Expense1 = new MarketCard("Sewer Line Breaks",
+ "Water is everywhere at your property! Pay $1000 for a new sewer line (one time). Take out a bank loan if necessary to cover these expenses. MarketCard applies only to the person who drew it. If you own NO real estate, ignore this MarketCard.",
+ "expense", false, 1000);
+ private static MarketCard Expense2 = new MarketCard("Sewer Line Breaks",
+ "Water is everywhere at your property! Pay $2000 for a new sewer line (one time). Take out a bank loan if necessary to cover these expenses. MarketCard applies only to the person who drew it. If you own NO real estate, ignore this MarketCard.",
+ "expense", false, 2000);
+ private static MarketCard Expense3 = new MarketCard("Tenant Damages Your Property",
+ "Tenant refuses to pay rent. After the tenant has been evicted, you discover significant damage to your property. Insurance covers most repairs, but you still must pay $500(one time). Take out a bank loan if necessary to cover these expenses. MarketCard applies only to the person who drew it. If you own NO real estate, ignore this MarketCard.",
+ "expense", false, 500);
+ private static MarketCard Expense4 = new MarketCard("Tenant Damages Your Property",
+ "Tenant refuses to pay rent. After the tenant has been evicted, you discover significant damage to your property. Insurance covers most repairs, but you still must pay $500(one time). Take out a bank loan if necessary to cover these expenses. MarketCard applies only to the person who drew it. If you own NO real estate, ignore this MarketCard.",
+ "expense", false, 500);
+ private static MarketCard Expense5 = new MarketCard("Tenant Damages Your Property",
+ "Tenant refuses to pay rent. After the tenant has been evicted, you discover significant damage to your property. Insurance covers most repairs, but you still must pay $1000(one time). Take out a bank loan if necessary to cover these expenses. MarketCard applies only to the person who drew it. If you own NO real estate, ignore this MarketCard.",
+ "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);
+ 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);
+ 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);
+ 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);
+
+ //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",
+ "Buyer searching for 3Br/2Ba house. Offers your original cost plus 10%. 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.",
+ "repercent",true,110);
+ private static MarketCard REPercent2 = new MarketCard("House Buyer - 2BR/1BA",
+ "Buyer looking to aquire 2Br/1Ba rentals. Offers your original cost plus 10%. 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.",
+ "repercent",true,110);
+ private static MarketCard REPercent3 = new MarketCard("House Buyer - 3BR/2BA",
+ "Buyer searching for 3Br/2Ba house. Offers your original cost plus 20%. 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.",
+ "repercent",true,120);
+ private static MarketCard REPercent4 = new MarketCard("House Buyer - 2BR/1BA",
+ "Buyer looking to aquire 2Br/1Ba rentals. Offers your original cost plus 20%. 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.",
+ "repercent",true,120);
+ private static MarketCard REPercent5 = new MarketCard("House Buyer - 3BR/2BA",
+ "Buyer searching for 3Br/2Ba house. Offers your original cost plus 15%. 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.",
+ "repercent",true,115);
+ private static MarketCard REPercent6 = new MarketCard("Plex Buyer",
+ "Buyer looking for all Apartment and Plexes in any combination of units. Offers your original cost plus 10%. 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.",
+ "repercent",true,110);
+ private static MarketCard REPercent7 = new MarketCard("Plex Buyer",
+ "Buyer looking for all Apartment and Plexes in any combination of units. Offers your original cost plus 5%. 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.",
+ "repercent",true,105);
+ private static MarketCard REPercent8 = new MarketCard("Plex Buyer",
+ "Buyer looking for all Apartment and Plexes in any combination of units. Offers your original cost plus 15%. 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.",
+ "repercent",true,115);
+ private static MarketCard REPercent9 = new MarketCard("Plex Buyer",
+ "Buyer looking for all Apartment and Plexes in any combination of units. Offers your original cost plus 20%. 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.",
+ "repercent",true,120);
+
+ //refixed - value is the amount of money you get for selling property
+ private static MarketCard REFixed1 = new MarketCard("House Buyer - 3BR/2BA",
+ "Buyer searching for 3Br/2Ba house. Offers your original cost plus $15,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,15000);
+ 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);
+ 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);
+ private static MarketCard REFixed4 = new MarketCard("House Buyer - 3BR/2BA",
+ "Buyer searching for 3Br/2Ba house. Offers your original cost plus $5,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,5000);
+ private static MarketCard REFixed5 = new MarketCard("Plex Buyer",
+ "Buyer looking for all Apartment and Plexes in any combination of units. Offers your original cost plus $1,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);
+ private static MarketCard REFixed6 = new MarketCard("Plex Buyer",
+ "Buyer looking for all Apartment and Plexes in any combination of units. Offers your original cost plus $30,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,30000);
+ private static MarketCard REFixed7 = new MarketCard("Plex Buyer",
+ "Buyer looking for all Apartment and Plexes in any combination of units. Offers your original cost plus $15,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,15000);
+ private static MarketCard REFixed8 = new MarketCard("Plex Buyer",
+ "Buyer looking for all Apartment and Plexes in any combination of units. Offers your original cost plus $5,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,5000);
+ private static MarketCard REFixed9 = new MarketCard("Plex Buyer",
+ "Buyer looking for all Apartment and Plexes in any combination of units. Offers your original cost plus $1,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);
+ private static MarketCard REFixed10 = new MarketCard("Plex Buyer",
+ "Buyer looking for all Apartment and Plexes in any combination of units. 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);
+ private static MarketCard REFixed11 = new MarketCard("Plex Buyer",
+ "Buyer looking for all Apartment and Plexes in any combination of units. 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,10000);
+
+ //aoffer - value is amount of money you get for selling each unit
+ private static MarketCard REHOffer1 = new MarketCard("House or Condo Buyer - 2BR/1BA",
+ "You are offered $45,000 for a 2Br/1Ba House or Condo. Buyer has their own financing. 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.",
+ "hoffer",true,45000);
+ private static MarketCard REHOffer2 = new MarketCard("House or Condo Buyer - 2BR/1BA",
+ "You are offered $65,000 for a 2Br/1Ba House or Condo. Buyer has their own financing. 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.",
+ "hoffer",true,65000);
+ private static MarketCard REAOffer1 = new MarketCard("Apartment House Buyer",
+ "Buyer offers $25,000 per unit for all units in apartment houses of any size. (His 1031 tax-deferred exchange time is running out.) Buyer has their own financing. 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.",
+ "aoffer",true,25000);
+ private static MarketCard REAOffer2 = new MarketCard("Apartment House Buyer",
+ "Buyer offers $45,000 per unit for all units in apartment houses of any size. (His 1031 tax-deferred exchange time is running out.) Buyer has their own financing. 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.",
+ "aoffer",true,45000);
+ private static MarketCard REAOffer3 = new MarketCard("Apartment House Buyer",
+ "REIT offers $30,000 per unit for all units in apartment houses of 12 units or more. Buyer has capital from the sale of another apartment complex. 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.",
+ "aoffer",true,30000);
+ private static MarketCard REAOffer4 = new MarketCard("Apartment House Buyer",
+ "REIT offers $40,000 per unit for all units in apartment houses of 12 units or more. Buyer has capital from the sale of another apartment complex. 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.",
+ "aoffer",true,40000);
+
+ public MarketStack()
+ {
+ MarketCard[] marketCardArray = {Profit1, Profit2,
+ Gold1, Gold2, Gold3, Gold4,
+ Expense1, Expense2, Expense3, Expense4, Expense5,
+ 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,
+ REAOffer1, REAOffer2, REAOffer3, REAOffer4};
+ randomizeCards(marketCardArray);
+ }
+
+ //profit MarketCard - value is how much $ is added
+
+ /*
+ * Write a method below that evaluates what the MarketCard type is + who it effects and performs operations based on that and yeah stuff
+ * Then put them all into a stack so they can be used in game!
+ */
+
+ /* Need a decision function
+ *Need separate functionalities (if statements) based on MarketCard type
+ * Need a way that every player who is affected gets the decision option
+ * Do we check if they have the proper real estate needed? Or do we assume the player knows and obviously make it so they can't sell something they don't have
+ */
+
+
+}
+
diff --git a/src/model/Player.java b/src/model/Player.java
new file mode 100644
index 0000000..90f8447
--- /dev/null
+++ b/src/model/Player.java
@@ -0,0 +1,7 @@
+package model;
+
+public class Player
+{
+ private FinacialStatement _fs;
+
+}
diff --git a/src/model/Profession.java b/src/model/Profession.java
index e111d62..780ae2f 100644
--- a/src/model/Profession.java
+++ b/src/model/Profession.java
@@ -1,3 +1,5 @@
+package model;
+
public class Profession
{
@@ -120,6 +122,4 @@ public int getCreditCardDebt()
{
return _creditCardDebt;
}
-
}
-
diff --git a/src/model/Professions.java b/src/model/Professions.java
index df954af..e38686d 100644
--- a/src/model/Professions.java
+++ b/src/model/Professions.java
@@ -1,56 +1,59 @@
+package model;
+
+import java.util.*;
public class Professions
{
+ Profession Nurse = new Profession("Nurse", 3100, 600, 400, 100, 100, 200, 600, 0, 0, 200, 500, 47000, 6000, 5000, 4000);
+ Profession Teacher = new Profession("Teacher", 3300, 500, 500, 100, 100, 200, 700, 0, 0,
+ 200, 400, 50000, 12000, 5000, 4000);
- Profession Nurse = new Profession(Nurse, 3100, 600, 400, 100, 100, 200, 600, 0, 0, 200,
- 500, 47000, 6000, 5000, 4000);
-
- Profession Teacher = new Profession(Teacher, 3300, 500, 500, 100, 100, 200, 700, 0, 0, 200,
- 400, 50000, 12000, 5000, 4000);
-
- Profession TruckDriver = new Profession(TruckDriver, 2500, 500, 400, 0, 100, 100, 600,
+ Profession TruckDriver = new Profession("TruckDriver", 2500, 500, 400, 0, 100, 100, 600,
0, 0, 200, 800, 38000, 0, 4000, 3000);
- Profession Secretary = new Profession(Secretary, 2500, 500, 400, 0, 100, 100, 600, 0, 0,
+ Profession Secretary = new Profession("Secretary", 2500, 500, 400, 0, 100, 100, 600, 0, 0,
100, 700, 38000, 0, 4000, 3000);
- Profession Engineer = new Profession(Engineer, 4900, 1000, 700, 100, 200, 200, 1000, 0, 0,
+ Profession Engineer = new Profession("Engineer", 4900, 1000, 700, 100, 200, 200, 1000, 0, 0,
200, 400, 75000, 12000, 7000, 5000);
- Profession BusinessManager = new Profession(BusinessManager, 4600, 900, 700, 100, 100, 200,
+ Profession BusinessManager = new Profession("BusinessManager", 4600, 900, 700, 100, 100, 200,
1000, 0, 0, 300, 400, 75000, 12000, 6000, 4000);
- Profession AirlinePilot = new Profession(AirlinePilot, 9500, 2000, 1000, 0, 300, 700, 2000,
+ Profession AirlinePilot = new Profession("AirlinePilot", 9500, 2000, 1000, 0, 300, 700, 2000,
0, 0, 400, 2500, 90000, 0, 15000, 22000);
- Profession Lawyer = new Profession(Lawyer, 7500, 1800, 1100, 300, 200, 200, 1500, 0, 0, 400,
+ Profession Lawyer = new Profession("Lawyer", 7500, 1800, 1100, 300, 200, 200, 1500, 0, 0, 400,
2000, 115000, 78000, 11000, 7000);
- Profession PoliceOfficer = new Profession(PoliceOfficer, 3000, 600, 400, 0, 100, 100, 700, 0, 0,
+ Profession PoliceOfficer = new Profession("PoliceOfficer", 3000, 600, 400, 0, 100, 100, 700, 0, 0,
200, 500, 46000, 0, 5000, 3000);
- Profession Doctor = new Profession(Doctor, 13200, 3200, 1900, 700, 300, 200, 2000, 0, 0, 700,
+ Profession Doctor = new Profession("Doctor", 13200, 3200, 1900, 700, 300, 200, 2000, 0, 0, 700,
3500, 202000, 150000, 19000, 10000);
- Profession Mechanic = new Mechanic(Mechanic, 2000, 400, 300, 0, 100, 100, 400, 0, 0, 100,
+ Profession Mechanic = new Profession("Mechanic", 2000, 400, 300, 0, 100, 100, 400, 0, 0, 100,
700, 31000, 0, 3000, 3000);
- Profession Janitor = new Profession(Janitor, 1600, 300, 200, 0, 100, 100, 300, 0, 0, 100,
+ Profession Janitor = new Profession("Janitor", 1600, 300, 200, 0, 100, 100, 300, 0, 0, 100,
600, 20000, 0, 4000, 3000);
- Profession[] profs = [Nurse, Teacher, TruckDriver, Secretary, Engineer, BusinessManager,
- AirlinePilot, Lawyer, PoliceOfficer, Doctor, Mechanic, Janitor];
+ Profession[] profs = {Nurse, Teacher, TruckDriver, Secretary, Engineer, BusinessManager,
+ AirlinePilot, Lawyer, PoliceOfficer, Doctor, Mechanic, Janitor};
public Profession playerProf;
+ public Professions() {}
+
+
+
public Profession getProfession()
{
- int rand = new Random(11);
- playerProf = Profession[rand];
- return playerProf;
-
+ Random rand = new Random();
+ int n = rand.nextInt(11);
+ return profs[n];
}
public static void main String(args[])
diff --git a/src/model/SmallDealStack.java b/src/model/SmallDealStack.java
new file mode 100644
index 0000000..00a8cd6
--- /dev/null
+++ b/src/model/SmallDealStack.java
@@ -0,0 +1,141 @@
+package model;
+
+public class SmallDealStack extends CardStack
+{
+ private static DealCard SD01 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD02 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD03 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD04 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD05 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD06 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD07 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD08 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD09 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD10 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD11 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD12 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD13 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD14 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD15 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD16 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD17 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD18 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD19 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD20 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD21 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD22 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD23 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD24 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD25 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD26 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD27 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD28 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD29 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD30 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD31 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD32 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD33 = new DealCard("",
+ "",
+ , , );
+ private static DealCard SD34 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD35 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD36 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD37 = new DealCard("",
+ "",
+ , , , );
+ private static DealCard SD38 = new DealCard("",
+ "",
+ , , , );
+
+ public SmallDealStack()
+ {
+ DealCard[] sdArray = {SD01, SD02, SD03, SD04, SD05, SD06, SD07, SD08, SD09, SD10,
+ SD11, SD12, SD13, SD14, SD15, SD16, SD17, SD18, SD19, SD20,
+ SD21, SD22, SD23, SD24, SD25, SD26, SD27, SD28, SD29, SD30,
+ SD31, SD32, SD33, SD34, SD35, SD36, SD37, SD38};
+ super.randomizeCards(sdArray);
+ }
+ }
+
+}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/model/Tile.java b/src/model/Tile.java
new file mode 100644
index 0000000..9f4d5d9
--- /dev/null
+++ b/src/model/Tile.java
@@ -0,0 +1,6 @@
+package model;
+
+public class Tile
+{
+
+}
diff --git a/src/view/MainWindow.java b/src/view/MainWindow.java
new file mode 100644
index 0000000..ea95c70
--- /dev/null
+++ b/src/view/MainWindow.java
@@ -0,0 +1,55 @@
+package view;
+
+import java.awt.*;
+
+import javax.swing.JFrame;
+import javax.swing.JPanel;
+
+public class MainWindow {
+
+ private JFrame frame;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ MainWindow window = new MainWindow();
+ window.frame.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the application.
+ */
+ public MainWindow() {
+ initialize();
+ }
+
+ /**
+ * Initialize the contents of the frame.
+ */
+ private void initialize() {
+ frame = new JFrame();
+ frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
+ //frame.setBackground(new Color(186,85,211));
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ //frame.getContentPane().setLayout(null);
+ frame.setVisible(true);
+
+ JPanel panel = new JPanel();
+ panel.setBackground(new Color(186,85,211));
+ frame.getContentPane().add(panel);
+ panel.setLayout(null);
+
+ JPanel panel_1 = new JPanel();
+ panel_1.setBounds(6, 6, 48, 47);
+ panel.add(panel_1);
+ }
+}
diff --git a/src/view/MainWindow1.java b/src/view/MainWindow1.java
new file mode 100644
index 0000000..b68860b
--- /dev/null
+++ b/src/view/MainWindow1.java
@@ -0,0 +1,42 @@
+package view;
+
+import java.awt.BorderLayout;
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JPanel;
+import javax.swing.border.EmptyBorder;
+
+public class MainWindow1 extends JFrame {
+
+ private JPanel contentPane;
+
+ /**
+ * Launch the application.
+ */
+ public static void main(String[] args) {
+ EventQueue.invokeLater(new Runnable() {
+ public void run() {
+ try {
+ MainWindow1 frame = new MainWindow1();
+ frame.setVisible(true);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ });
+ }
+
+ /**
+ * Create the frame.
+ */
+ public MainWindow1() {
+ setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ setBounds(100, 100, 450, 300);
+ contentPane = new JPanel();
+ contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
+ contentPane.setLayout(new BorderLayout(0, 0));
+ setContentPane(contentPane);
+ }
+
+}