Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update Card.java
  • Loading branch information
jjv14001 committed Mar 3, 2017
1 parent 48af30b commit 2139984
Showing 1 changed file with 52 additions and 7 deletions.
59 changes: 52 additions & 7 deletions 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;


}


}

0 comments on commit 2139984

Please sign in to comment.