From 2139984ad884a194ab0e40e78c4a9c9b7364d6dd Mon Sep 17 00:00:00 2001 From: Jacklyn J Videira Date: Thu, 2 Mar 2017 21:26:44 -0500 Subject: [PATCH] Update Card.java --- src/model/Card.java | 59 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 52 insertions(+), 7 deletions(-) diff --git a/src/model/Card.java b/src/model/Card.java index ffaa466..8f793de 100644 --- a/src/model/Card.java +++ b/src/model/Card.java @@ -1,43 +1,88 @@ -package model; + + /* + * this is a very broad object class + * i know we said all the card stacks would be in here but like + * would it make more sense for them to be in the individual card classes? + * - jackie + * + */ + public class Card + { + private String _title; + private String _type; // you dont have to use this but i added it because theres so many different types of market cards i need something to keep track of which is which + private Boolean _effect; //True if it effects all players - private int _value; // Any integer value that can be attached to the card. If card needs no value, put 0 + private int _value; // Any integer value that can be attached to the card. If card needs no value, put 0 + private int _value1; //value of cost + + private int _value2; //value of Down Payment + + private int _value3; //value of Mortgage + private int _value4; //value of Cash Flow + + + public Card(String title, String type, Boolean effect, int value){ + _title = title; + _type = type; + _effect = effect; - _value = value; - } - + _value = value; + } public String getTitle() + { return _title; } - + public String getType() { return _type; } + public int getValue(){ return _value; } - + public Card (String title, String type, Boolean effect, int value, int value2, int value3, int value4){ + + _title = title; + + _type = type; + + _effect = effect; + + _value = value; + + _value1 = value; + + _value2 = value; + + _value3 = value; + + _value4 = value; + + + } + }