Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hello mtv welcome to my crib
  • Loading branch information
jackie committed Mar 2, 2017
1 parent 0f2ab54 commit e30aa54
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/model/Market_Card.java
@@ -1 +1,46 @@
/*
* hello
*/
public class Market_Card
{
private String _title;
private String _type; // repercent, refixed, expense, stock, gold, profit, aoffer, hoffer
private Boolean _effect; //True if it effects all players
private int _money; //If card type is expense or profit or gold
private int _fixedpayment; //For cards of type refixed with a sell price in addition to initial purchase OR for an offer amount (apartment offer - per unit, house offer - whole house)
private int _percentpayment; // percent + 100 for repercent with percentage payment

// When implemented there needs to be a way to check whether the player has the necessary things or not

public Market_Card(String title, String type, Boolean effect, int money, int fixedpayment, int percentpayment){
_title = title;
_type = type;
_effect = effect;
_money = money;
_fixedpayment = fixedpayment;
_percentpayment = percentpayment;
}



public String getTitle()
{
return _title;
}

public String getType()
{
return _type;
}
public int getCost(){
return _money;
}
public int getFixed(){
return _fixedpayment;
}
public int getPercent(){
return _percentpayment;
}


}
103 changes: 103 additions & 0 deletions src/model/Market_Cards.java
@@ -1 +1,104 @@
/* help my booleans aren't working and i dont know why
* also i havent quite done much except make a very annoying marketcard class
* but i swear theres a method to my madness
* this will all come together i swear
*
*/
public class Market_Cards extends Market_Card {
private static final Boolean True = null;
private static final Boolean False = null;
//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
Market_Card Profit1 = new Market_Card("Small Business Boom!", "profit", True, 250, 0, 0);
//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
Market_Card Profit2 = new Market_Card("New Management System", "profit", False, 400, 0, 0);
// A new management system creates new efficiencies and lowers costs. Only the person who drew this card is affected.
// For profit cards: add profit amount to all business with cash flow of $1000 or less
Market_Card Gold1 = new Market_Card("Price of Gold Soars", "gold", True, 2000, 0, 0);
// 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.
Market_Card Gold2 = new Market_Card("Collector wants Gold Coins", "gold", True, 1000, 0, 0);
//Wealthy collector is looking for gold coins. Cash offer of $1000 for each coin. Everyone may sell any number of coins at this price.
Market_Card Gold3 = new Market_Card("Price of Gold Soars", "gold", True, 1000, 0, 0);
//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.
Market_Card Gold4 = new Market_Card("Collector wants Gold Coins", "gold", True, 500, 0, 0);
//Wealthy collector is looking for gold coins. Cash offer of $500 for each coin. Everyone may sell any number of coins at this price.
Market_Card Expense1 = new Market_Card("Sewer Line Breaks", "expense", False, 1000, 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.
Market_Card Expense2 = new Market_Card("Sewer Line Breaks", "expense", False, 2000, 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.
Market_Card Expense3 = new Market_Card("Tenant Damages Your Property", "expense", False, 500, 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.
Market_Card Expense4 = new Market_Card("Tenant Damages Your Property", "expense", False, 500, 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.
Market_Card Expense5 = new Market_Card("Tenant Damages Your Property", "expense", False, 1000, 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.
Market_Card Stock1 = new Market_Card("Stock - MYT4U Electronics Co.","stock",True,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.
Market_Card Stock2 = new Market_Card("Stock - GRO4US Fund","stock",True,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.
Market_Card Stock3 = new Market_Card("Stock - ON2U Entertainment Co.","stock",True,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.
Market_Card Stock4 = new Market_Card("Stock - OK4U Drug Co.","stock",True,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.
Market_Card REPercent1 = new Market_Card("House Buyer - 3BR/2BA","repercent",True,0,0,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.
Market_Card REPercent2 = new Market_Card("House Buyer - 2BR/1BA","repercent",True,0,0,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.
Market_Card REPercent3 = new Market_Card("House Buyer - 3BR/2BA","repercent",True,0,0,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.
Market_Card REPercent4 = new Market_Card("House Buyer - 2BR/1BA","repercent",True,0,0,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.
Market_Card REPercent5 = new Market_Card("House Buyer - 3BR/2BA","repercent",True,0,0,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.
Market_Card REPercent6 = new Market_Card("Plex Buyer","repercent",True,0,0,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.
Market_Card REPercent7 = new Market_Card("Plex Buyer","repercent",True,0,0,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.
Market_Card REPercent8 = new Market_Card("Plex Buyer","repercent",True,0,0,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.
Market_Card REPercent9 = new Market_Card("Plex Buyer","repercent",True,0,0,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.
Market_Card REFixed1 = new Market_Card("House Buyer - 3BR/2BA","refixed",True,0,15000,0);
//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.
Market_Card REFixed2 = new Market_Card("House Buyer - 3BR/2BA","refixed",True,0,10000,0);
//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.
Market_Card REFixed3 = new Market_Card("House Buyer - 3BR/2BA","refixed",True,0,20000,0);
//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.
Market_Card REFixed4 = new Market_Card("House Buyer - 3BR/2BA","refixed",True,0,5000,0);
//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.
Market_Card REHOffer1 = new Market_Card("House or Condo Buyer - 2BR/1BA","hoffer",True,0,45000,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.
Market_Card REHOffer2 = new Market_Card("House or Condo Buyer - 2BR/1BA","hoffer",True,0,65000,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.
Market_Card REFixed5 = new Market_Card("Plex Buyer","refixed",True,0,1000,0);
//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.
Market_Card REFixed6 = new Market_Card("Plex Buyer","refixed",True,0,30000,0);
//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.
Market_Card REFixed7 = new Market_Card("Plex Buyer","refixed",True,0,15000,0);
//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.
Market_Card REFixed8 = new Market_Card("Plex Buyer","refixed",True,0,5000,0);
//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.
Market_Card REFixed9 = new Market_Card("Plex Buyer","refixed",True,0,1000,0);
//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.
Market_Card REFixed10 = new Market_Card("Plex Buyer","refixed",True,0,20000,0);
//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.
Market_Card REFixed11 = new Market_Card("Plex Buyer","refixed",True,0,10000,0);
//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.
Market_Card REAOffer1 = new Market_Card("Apartment House Buyer","aoffer",True,0,25000,0);
//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.
Market_Card REAOffer2 = new Market_Card("Apartment House Buyer","aoffer",True,0,45000,0);
//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.
Market_Card REAOffer3 = new Market_Card("Apartment House Buyer","aoffer",True,0,30000,0);
//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.
Market_Card REAOffer4 = new Market_Card("Apartment House Buyer","aoffer",True,0,40000,0);
//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.

/*
* Write a method below that evaluates what the card type is + who it effects and performs operations based on that and yeah stuff
*
*/
public static void main(String[] args) {

}

}

0 comments on commit e30aa54

Please sign in to comment.