From 22810c796f8d68d195d605e4043bca9ac5662f72 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 3 Mar 2017 13:59:54 -0500 Subject: [PATCH] Finished market cards --- bin/controller/Cashflow.class | Bin 1087 -> 1087 bytes src/controller/Cashflow.java | 7 +- src/model/Card.java | 37 +---- src/model/CardStack.java | 30 ++++ src/model/DoodadStack.java | 27 +-- src/model/MarketCard.java | 20 ++- .../{Market_Cards.java => MarketStack.java} | 154 +++++++++--------- 7 files changed, 139 insertions(+), 136 deletions(-) rename src/model/{Market_Cards.java => MarketStack.java} (56%) diff --git a/bin/controller/Cashflow.class b/bin/controller/Cashflow.class index 7dce6a220275a33cfda53d3033ce4b8874ef8392..9e775fba0c1597a396c8d40e4861cf48872530f0 100644 GIT binary patch delta 47 zcmdnbv7ckYX*S=)qU_X?jThfC3gs3vG6?(R=BK3Q=tG1zUtp4CWE7hGia8Vjw>1$# delta 47 zcmdnbv7ckYX*QSq{FKC$jThfC3Z)b?G6?(R=BK3Q=tG1zUtp4CWE7tKia8Vjv3?N; diff --git a/src/controller/Cashflow.java b/src/controller/Cashflow.java index 0ad2aaa..f45feb3 100644 --- a/src/controller/Cashflow.java +++ b/src/controller/Cashflow.java @@ -7,14 +7,13 @@ public class Cashflow { public static void main(String[] args) { - DoodadStack ds = new DoodadStack(); + MarketStack ms = new MarketStack(); - int initialSize = ds.getSize(); + int initialSize = ms.getSize(); for(int i=0; i 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/DoodadStack.java b/src/model/DoodadStack.java index 59317d2..cd36519 100644 --- a/src/model/DoodadStack.java +++ b/src/model/DoodadStack.java @@ -52,36 +52,17 @@ public class DoodadStack extends CardStack // Constructor just calls makes this stack a randomized stack with Doodad cards public DoodadStack() { - randomizeStack(); - } - - - // Randomizes the stack with the member variable cards - private void randomizeStack() - { - //CardStack cardStack = new CardStack(); - ArrayList cardList = new ArrayList(); - Random r = new Random(); 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}; - // Add all array contents to list - for(DoodadCard 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++) - { - this.push(cardList.remove(r.nextInt(cardList.size()))); - } - + super.randomizeCards(cardArray); } + + + diff --git a/src/model/MarketCard.java b/src/model/MarketCard.java index 90a9b1b..6e72aaa 100644 --- a/src/model/MarketCard.java +++ b/src/model/MarketCard.java @@ -2,9 +2,25 @@ public class MarketCard extends Card { - public MarketCard(String title, int value) { + private String _type; + private boolean _affectAll; + + public MarketCard(String title, String type, boolean affectAll, int value) + { super(title, value); - // TODO Auto-generated constructor stub + _type = type; + _affectAll = affectAll; } + public String getType() + { + return _type; + } + + public boolean doesAffectAll() + { + return _affectAll; + } + + } diff --git a/src/model/Market_Cards.java b/src/model/MarketStack.java similarity index 56% rename from src/model/Market_Cards.java rename to src/model/MarketStack.java index 82b22ba..aff2d37 100644 --- a/src/model/Market_Cards.java +++ b/src/model/MarketStack.java @@ -3,116 +3,124 @@ * hi im very forgetful so my code is usually full of comments when its not finished sorry * */ -public class MarketCardStack extends Card { - - public Market_Cards(String title, String type, Boolean effect, int value, int value2, int value3, int value4) { - super(title, type, effect, value, value2, value3, value4); - // TODO Auto-generated constructor stub - } - - //profit card - value is how much $ is added +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 - Card Profit1 = new Card("Small Business Boom!", "profit", true, 250,0,0,0); + private static MarketCard Profit1 = new MarketCard("Small Business Boom!", "profit", true, 250); //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 - Card Profit2 = new Card("New Management System", "profit", false, 400,0,0,0); - // A new management system creates new efficiencies and lowers costs. Only the person who drew this card is affected. - //gold card - value is $ per coin - Card Gold1 = new Card("Price of Gold Soars", "gold", true, 2000,0,0,0); + private static MarketCard Profit2 = new MarketCard("New Management System", "profit", false, 400); + // A new management system creates new efficiencies and lowers costs. Only the person who drew this MarketCard is affected. + //gold MarketCard - value is $ per coin + private static MarketCard Gold1 = new MarketCard("Price of Gold Soars", "gold", true, 2000); // 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. - Card Gold2 = new Card("Collector wants Gold Coins", "gold", true, 1000,0,0,0); + private static MarketCard Gold2 = new MarketCard("Collector wants Gold Coins", "gold", true, 1000); //Wealthy collector is looking for gold coins. Cash offer of $1000 for each coin. Everyone may sell any number of coins at this price. - Card Gold3 = new Card("Price of Gold Soars", "gold", true, 1000,0,0,0); + private static MarketCard Gold3 = new MarketCard("Price of Gold Soars", "gold", true, 1000); //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. - Card Gold4 = new Card("Collector wants Gold Coins", "gold", true, 500,0,0,0); + private static MarketCard Gold4 = new MarketCard("Collector wants Gold Coins", "gold", true, 500); //Wealthy collector is looking for gold coins. Cash offer of $500 for each coin. Everyone may sell any number of coins at this price. - //expense card - quite obviously the value is how much this expense costs - Card Expense1 = new Card("Sewer Line Breaks", "expense", false, 1000,0,0,0); - //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. Card applies only to the person who drew it. If you own NO real estate, ignore this card. - Card Expense2 = new Card("Sewer Line Breaks", "expense", false, 2000,0,0,0); - //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. Card applies only to the person who drew it. If you own NO real estate, ignore this card. - Card Expense3 = new Card("Tenant Damages Your Property", "expense", false, 500,0,0,0); - //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. Card applies only to the person who drew it. If you own NO real estate, ignore this card. - Card Expense4 = new Card("Tenant Damages Your Property", "expense", false, 500,0,0,0); - //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. Card applies only to the person who drew it. If you own NO real estate, ignore this card. - Card Expense5 = new Card("Tenant Damages Your Property", "expense", false, 1000,0,0,0); - //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. Card applies only to the person who drew it. If you own NO real estate, ignore this card. - //stock card - no value necessary - Card Stock1 = new Card("Stock - MYT4U Electronics Co.","stock",true,0,0,0,0); - //MYT4U takes a gamble on new home entertainment tech. Will it hit big or be the next Beta-Max? Cardholder 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. - Card Stock2 = new Card("Stock - GRO4US Fund","stock",true,0,0,0,0); - //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? Cardholder 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. - Card Stock3 = new Card("Stock - ON2U Entertainment Co.","stock",true,0,0,0,0); - //Studio backs fresh director for its summer blockbuster. Groundbreaking production could be too ambitious. Cardholder 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. - Card Stock4 = new Card("Stock - OK4U Drug Co.","stock",true,0,0,0,0); - //OK4U begins trial on possible life-saving drug. Side effects are untested. Could change the world... if it works. Cardholder 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. + //expense MarketCard - quite obviously the value is how much this expense costs + private static MarketCard Expense1 = new MarketCard("Sewer Line Breaks", "expense", false, 1000); + //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. + private static MarketCard Expense2 = new MarketCard("Sewer Line Breaks", "expense", false, 2000); + //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. + private static MarketCard Expense3 = new MarketCard("Tenant Damages Your Property", "expense", false, 500); + //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. + private static MarketCard Expense4 = new MarketCard("Tenant Damages Your Property", "expense", false, 500); + //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. + private static MarketCard Expense5 = new MarketCard("Tenant Damages Your Property", "expense", false, 1000); + //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. + //stock MarketCard - no value necessary + private static MarketCard Stock1 = new MarketCard("Stock - MYT4U Electronics Co.","stock",true,0); + //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. + private static MarketCard Stock2 = new MarketCard("Stock - GRO4US Fund","stock",true,0); + //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. + private static MarketCard Stock3 = new MarketCard("Stock - ON2U Entertainment Co.","stock",true,0); + //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. + private static MarketCard Stock4 = new MarketCard("Stock - OK4U Drug Co.","stock",true,0); + //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. //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 - Card REPercent1 = new Card("House Buyer - 3BR/2BA","repercent",true,110,0,0,0); + private static MarketCard REPercent1 = new MarketCard("House Buyer - 3BR/2BA","repercent",true,110); //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. - Card REPercent2 = new Card("House Buyer - 2BR/1BA","repercent",true,110,0,0,0); + private static MarketCard REPercent2 = new MarketCard("House Buyer - 2BR/1BA","repercent",true,110); //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. - Card REPercent3 = new Card("House Buyer - 3BR/2BA","repercent",true,120,0,0,0); + private static MarketCard REPercent3 = new MarketCard("House Buyer - 3BR/2BA","repercent",true,120); //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. - Card REPercent4 = new Card("House Buyer - 2BR/1BA","repercent",true,120,0,0,0); + private static MarketCard REPercent4 = new MarketCard("House Buyer - 2BR/1BA","repercent",true,120); //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. - Card REPercent5 = new Card("House Buyer - 3BR/2BA","repercent",true,115,0,0,0); + private static MarketCard REPercent5 = new MarketCard("House Buyer - 3BR/2BA","repercent",true,115); //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. - Card REPercent6 = new Card("Plex Buyer","repercent",true,110,0,0,0); + private static MarketCard REPercent6 = new MarketCard("Plex Buyer","repercent",true,110); //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. - Card REPercent7 = new Card("Plex Buyer","repercent",true,105,0,0,0); + private static MarketCard REPercent7 = new MarketCard("Plex Buyer","repercent",true,105); //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. - Card REPercent8 = new Card("Plex Buyer","repercent",true,115,0,0,0); + private static MarketCard REPercent8 = new MarketCard("Plex Buyer","repercent",true,115); //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. - Card REPercent9 = new Card("Plex Buyer","repercent",true,120,0,0,0); + private static MarketCard REPercent9 = new MarketCard("Plex Buyer","repercent",true,120); //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. //refixed - value is the amount of money you get for selling property - Card REFixed1 = new Card("House Buyer - 3BR/2BA","refixed",true,15000,0,0,0); + private static MarketCard REFixed1 = new MarketCard("House Buyer - 3BR/2BA","refixed",true,15000); //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. - Card REFixed2 = new Card("House Buyer - 3BR/2BA","refixed",true,1000,0,0,0); + private static MarketCard REFixed2 = new MarketCard("House Buyer - 3BR/2BA","refixed",true,1000); //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. - Card REFixed3 = new Card("House Buyer - 3BR/2BA","refixed",true,20000,0,0,0); + private static MarketCard REFixed3 = new MarketCard("House Buyer - 3BR/2BA","refixed",true,20000); //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. - Card REFixed4 = new Card("House Buyer - 3BR/2BA","refixed",true,5000,0,0,0); + private static MarketCard REFixed4 = new MarketCard("House Buyer - 3BR/2BA","refixed",true,5000); //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. - Card REHOffer1 = new Card("House or Condo Buyer - 2BR/1BA","hoffer",true,45000,0,0,0); - //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. - Card REHOffer2 = new Card("House or Condo Buyer - 2BR/1BA","hoffer",true,65000,0,0,0); - //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. - Card REFixed5 = new Card("Plex Buyer","refixed",true,1000,0,0,0); + private static MarketCard REFixed5 = new MarketCard("Plex Buyer","refixed",true,1000); //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. - Card REFixed6 = new Card("Plex Buyer","refixed",true,30000,0,0,0); + private static MarketCard REFixed6 = new MarketCard("Plex Buyer","refixed",true,30000); //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. - Card REFixed7 = new Card("Plex Buyer","refixed",true,15000,0,0,0); + private static MarketCard REFixed7 = new MarketCard("Plex Buyer","refixed",true,15000); //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. - Card REFixed8 = new Card("Plex Buyer","refixed",true,5000,0,0,0); + private static MarketCard REFixed8 = new MarketCard("Plex Buyer","refixed",true,5000); //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. - Card REFixed9 = new Card("Plex Buyer","refixed",true,1000,0,0,0); + private static MarketCard REFixed9 = new MarketCard("Plex Buyer","refixed",true,1000); //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. - Card REFixed10 = new Card("Plex Buyer","refixed",true,20000,0,0,0); + private static MarketCard REFixed10 = new MarketCard("Plex Buyer","refixed",true,20000); //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. - Card REFixed11 = new Card("Plex Buyer","refixed",true,10000,0,0,0); + private static MarketCard REFixed11 = new MarketCard("Plex Buyer","refixed",true,10000); //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. //aoffer - value is amount of money you get for selling each unit - Card REAOffer1 = new Card("Apartment House Buyer","aoffer",true,25000,0,0,0); + private static MarketCard REHOffer1 = new MarketCard("House or Condo Buyer - 2BR/1BA","hoffer",true,45000); + //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. + private static MarketCard REHOffer2 = new MarketCard("House or Condo Buyer - 2BR/1BA","hoffer",true,65000); + //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. + private static MarketCard REAOffer1 = new MarketCard("Apartment House Buyer","aoffer",true,25000); //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. - Card REAOffer2 = new Card("Apartment House Buyer","aoffer",true,45000,0,0,0); + private static MarketCard REAOffer2 = new MarketCard("Apartment House Buyer","aoffer",true,45000); //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. - Card REAOffer3 = new Card("Apartment House Buyer","aoffer",true,30000,0,0,0); + private static MarketCard REAOffer3 = new MarketCard("Apartment House Buyer","aoffer",true,30000); //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. - Card REAOffer4 = new Card("Apartment House Buyer","aoffer",true,40000,0,0,0); + private static MarketCard REAOffer4 = new MarketCard("Apartment House Buyer","aoffer",true,40000); //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. + 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}; + super.randomizeCards(MarketCardArray); + } + + //profit MarketCard - value is how much $ is added + /* - * Write a method below that evaluates what the card type is + who it effects and performs operations based on that and yeah stuff + * 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! - * ldasjkfdasjf;lads */ - public static void main(String[] args) { - /* Need a decision function - *Need separate functionalities (if statements) based on card 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 - */ - } + + /* 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 + */ + }